Make sanitizers closer to working again
I'm pretty sure the last bazel upgrade broke this.
Change-Id: I99104917fc3c80e71b6e3cb4f211c2c20f6fa337
diff --git a/tools/BUILD b/tools/BUILD
index 59cf695..8926d08 100644
--- a/tools/BUILD
+++ b/tools/BUILD
@@ -25,13 +25,13 @@
)
config_setting(
name = 'has_asan',
- values = {'copt': '-fsanitize=address'},
+ values = {'define': 'have_asan=true'},
)
config_setting(
name = 'has_tsan',
- values = {'copt': '-fsanitize=thread'},
+ values = {'define': 'have_tsan=true'},
)
config_setting(
name = 'has_ubsan',
- values = {'copt': '-fsanitize=undefined'},
+ values = {'define': 'have_ubsan=true'},
)