Skip to content

Commit

Permalink
Add copts to cppopts, so that defines in copts work too
Browse files Browse the repository at this point in the history
Signed-off-by: Steeve Morin <[email protected]>
  • Loading branch information
steeve committed Apr 16, 2018
1 parent da2a8b6 commit a41c767
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/private/rules/cgo.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def _cgo_codegen_impl(ctx):
if not go.cgo_tools:
fail("Go toolchain does not support cgo")
linkopts = ctx.attr.linkopts[:]
cppopts = go.cgo_tools.c_options + go.cgo_tools.compiler_options + ctx.attr.cppopts
cppopts = go.cgo_tools.c_options + go.cgo_tools.compiler_options + ctx.attr.copts + ctx.attr.cppopts
deps = depset([], order="topological")
cgo_export_h = go.declare_file(go, path="_cgo_export.h")
cgo_export_c = go.declare_file(go, path="_cgo_export.c")
Expand Down

0 comments on commit a41c767

Please sign in to comment.