@@ -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