Skip to content

Commit

Permalink
fix: Take --conlyopt into consideration (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyawk authored Oct 14, 2024
1 parent a01e5e2 commit f23d924
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clang_tidy/clang_tidy.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ def _toolchain_flags(ctx, action_name = ACTION_NAMES.cpp_compile):
user_compile_flags = ctx.fragments.cpp.copts
if action_name == ACTION_NAMES.cpp_compile:
user_compile_flags.extend(ctx.fragments.cpp.cxxopts)
elif action_name == ACTION_NAMES.c_compile and hasattr(ctx.fragments.cpp, "conlyopts"):
user_compile_flags.extend(ctx.fragments.cpp.conlyopts)
compile_variables = cc_common.create_compile_variables(
feature_configuration = feature_configuration,
cc_toolchain = cc_toolchain,
Expand Down

0 comments on commit f23d924

Please sign in to comment.