Skip to content

Commit f23d924

Browse files
authored
fix: Take --conlyopt into consideration (#77)
1 parent a01e5e2 commit f23d924

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang_tidy/clang_tidy.bzl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ def _toolchain_flags(ctx, action_name = ACTION_NAMES.cpp_compile):
132132
user_compile_flags = ctx.fragments.cpp.copts
133133
if action_name == ACTION_NAMES.cpp_compile:
134134
user_compile_flags.extend(ctx.fragments.cpp.cxxopts)
135+
elif action_name == ACTION_NAMES.c_compile and hasattr(ctx.fragments.cpp, "conlyopts"):
136+
user_compile_flags.extend(ctx.fragments.cpp.conlyopts)
135137
compile_variables = cc_common.create_compile_variables(
136138
feature_configuration = feature_configuration,
137139
cc_toolchain = cc_toolchain,

0 commit comments

Comments
 (0)