Add the various sanitizers from the GYP setup
Everything doesn't build and many tests don't pass, but the basics are
there.
Change-Id: I6d1219077318d9e168a81d9c3f620a8f77c97c96
diff --git a/tools/BUILD b/tools/BUILD
index 747b9c1..22ce501 100644
--- a/tools/BUILD
+++ b/tools/BUILD
@@ -2,7 +2,7 @@
exports_files(['test_sharding_compliant'])
-# Don't use these directly! Use //tools/build_rules/select.bzl instead.
+# Don't use these directly! Use //tools/build_rules/*.bzl instead.
config_setting(
name = 'compiler_clang',
values = {'compiler': 'clang'}
@@ -19,3 +19,11 @@
name = 'cpu_roborio',
values = {'cpu': 'roborio'},
)
+config_setting(
+ name = 'has_asan',
+ values = {'copt': '-fsanitize=address'},
+)
+config_setting(
+ name = 'has_tsan',
+ values = {'copt': '-fsanitize=thread'},
+)