Skip to content

Commit 693df60

Browse files
xinhaoyuancopybara-github
authored andcommitted
No public description
PiperOrigin-RevId: 846297412
1 parent b6e1af9 commit 693df60

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

centipede/testing/build_defs.bzl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ def _sancov_transition_impl(settings, attr):
2929
for x in settings["//command_line_option:features"]
3030
if x not in features_to_strip
3131
]
32+
compiler = settings["//command_line_option:compiler"]
33+
compilers_to_disable = ["tsan", "msan"]
34+
if compiler in compilers_to_disable:
35+
compiler = None
3236

3337
# some of the valid sancov flag combinations:
3438
# trace-pc-guard,pc-table
@@ -51,7 +55,7 @@ def _sancov_transition_impl(settings, attr):
5155
"//command_line_option:compilation_mode": "opt",
5256
"//command_line_option:strip": "never", # preserve debug info.
5357
"//command_line_option:features": filtered_features,
54-
"//command_line_option:compiler": None,
58+
"//command_line_option:compiler": compiler,
5559
"//command_line_option:dynamic_mode": "off",
5660
}
5761

@@ -60,6 +64,7 @@ sancov_transition = transition(
6064
inputs = [
6165
"//command_line_option:copt",
6266
"//command_line_option:features",
67+
"//command_line_option:compiler",
6368
],
6469
outputs = [
6570
"//command_line_option:collect_code_coverage",

0 commit comments

Comments
 (0)