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

Unified Diff: build/config/BUILDCONFIG.gn

Issue 1134003008: GN: Implement is_lsan, is_tsan and is_msan. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/BUILD.gn ('k') | build/config/allocator.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/BUILDCONFIG.gn
diff --git a/build/config/BUILDCONFIG.gn b/build/config/BUILDCONFIG.gn
index ee32088dfcdee63f409cff05760d4a8261d92680..1cd3fd93e264f3d05b9a79175b82c4e9032d60d7 100644
--- a/build/config/BUILDCONFIG.gn
+++ b/build/config/BUILDCONFIG.gn
@@ -77,15 +77,23 @@ declare_args() {
# Compile for Address Sanitizer to find memory bugs.
is_asan = false
+ asan_blacklist = "//tools/memory/asan/blacklist.txt"
brettw 2015/05/19 22:54:27 Please don't add any more args to this file. I'm a
Sam McNally 2015/05/20 01:07:21 I think it's clear for args used by a subset of th
# Compile for Leak Sanitizer to find leaks.
is_lsan = false
# Compile for Memory Sanitizer to find uninitialized reads.
is_msan = false
+ msan_blacklist = "//tools/msan/blacklist.txt"
+
+ # Track where uninitialized memory originates from. From fastest to slowest:
+ # 0 - no tracking, 1 - track only the initial allocation site, 2 - track the
+ # chain of stores leading from allocation site to use site.
+ msan_track_origins = 2
# Compile for Thread Sanitizer to find threading bugs.
is_tsan = false
+ tsan_blacklist = "//tools/memory/tsan_v2/ignores.txt"
if (current_os == "chromeos") {
# Allows the target toolchain to be injected as arguments. This is needed
@@ -373,6 +381,9 @@ if (symbol_level == -1) {
# Mac and Windows have them separate, so in Release Linux, default them off.
if (is_debug || !is_linux) {
symbol_level = 2
+ } else if (is_asan || is_lsan || is_tsan || is_msan) {
+ # Sanitizers require symbols for filename suppressions to work.
+ symbol_level = 1
} else {
symbol_level = 0
}
« no previous file with comments | « build/config/BUILD.gn ('k') | build/config/allocator.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698