Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1967)

Unified Diff: build/config/sanitizers/BUILD.gn

Issue 682843002: Adds ability to build for asan with gn (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/config/compiler/BUILD.gn ('k') | third_party/protobuf/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/sanitizers/BUILD.gn
diff --git a/build/config/sanitizers/BUILD.gn b/build/config/sanitizers/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..6012b48e3a86557e728e109843fb80a3e3d0893f
--- /dev/null
+++ b/build/config/sanitizers/BUILD.gn
@@ -0,0 +1,26 @@
+# 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.
+
+# Contains the dependencies needed for asan to link into executables and
+# shared_libraries. Unconditionally depend upon this target as it is empty if
+# |is_asan| is false.
+group("deps") {
+ if (is_asan) {
+ 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 = [ ":deps" ]
+ sources = [ "//build/sanitizers/sanitizer_options.cc" ]
+
+ if (is_tsan) {
+ sources += [ "//build/sanitizers/tsan_suppressions.cc" ]
+ }
+}
« no previous file with comments | « build/config/compiler/BUILD.gn ('k') | third_party/protobuf/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698