Skip to content

Commit

Permalink
fix: take conlyopts into consideration (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyawk authored Oct 14, 2024
1 parent 72fd3e3 commit 59c0534
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lang/cc/build_error.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ def _try_compile(ctx):
ccopts = ctx.fragments.cpp.copts + ctx.attr.copts
if _is_cpp(ctx.file.src):
ccopts += ctx.fragments.cpp.cxxopts
elif _is_c(ctx.file.src):
ccopts += ctx.fragments.cpp.conlyopts

compile_variables = cc_common.create_compile_variables(
cc_toolchain = cc_toolchain,
Expand Down

0 comments on commit 59c0534

Please sign in to comment.