Index: build/sanitizers/BUILD.gn |
diff --git a/build/sanitizers/BUILD.gn b/build/sanitizers/BUILD.gn |
new file mode 100644 |
index 0000000000000000000000000000000000000000..8d0044207b53fb48e2b45cf4cfabffef0fca279d |
--- /dev/null |
+++ b/build/sanitizers/BUILD.gn |
@@ -0,0 +1,22 @@ |
+# Copyright 2014 The Chromium Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+ |
+group("options") { |
brettw
2014/10/28 16:59:13
Can you put this file in //build/config/sanitizers
|
+ public_configs = [ ":sanitizer_options_link_helper" ] |
+ deps = [ ":options_sources" ] |
+} |
+ |
+config("sanitizer_options_link_helper") { |
+ ldflags = [ "-Wl,-u_sanitizer_options_link_helper", "-fsanitize=address" ] |
+} |
+ |
+source_set("options_sources") { |
+ visibility = [ ":options" ] |
+ sources = [ "sanitizer_options.cc" ] |
+ include_dirs = [ "../.." ] |
brettw
2014/10/28 16:59:13
Use absolute paths. Actually, isn't this the root
|
+ |
+ if (is_tsan) { |
+ sources += [ "tsan_suppressions.cc" ] |
+ } |
+} |