Skip to content

Commit

Permalink
Minimal fix
Browse files Browse the repository at this point in the history
  • Loading branch information
justinsb committed Jun 28, 2018
1 parent 257d889 commit 1875a75
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions go/private/rules/stdlib.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,11 @@ def _stdlib_library_to_source(go, attr, source, merge):
args.add(["-filter_buildid", filter_buildid.path])
go.actions.write(root_file, "")
env = go.env
prefixmap = " -DWOT"
env.update({
"CC": go.cgo_tools.compiler_executable,
"CGO_CPPFLAGS": " ".join(go.cgo_tools.compiler_options),
"CGO_CFLAGS": " ".join(go.cgo_tools.c_options),
"CGO_CPPFLAGS": " ".join(go.cgo_tools.compiler_options) + prefixmap,
"CGO_CFLAGS": " ".join(go.cgo_tools.c_options) + prefixmap,
"CGO_LDFLAGS": " ".join(go.cgo_tools.linker_options),
})
go.actions.run(
Expand Down

0 comments on commit 1875a75

Please sign in to comment.