summaryrefslogtreecommitdiffstats
path: root/build/common.gypi
diff options
context:
space:
mode:
authorglider@chromium.org <glider@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-28 07:27:58 +0000
committerglider@chromium.org <glider@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-28 07:27:58 +0000
commit3cfa96a63ef150e8b029330726d8e6a7ca178781 (patch)
treeb9e584d6376947c0c79c509cb49f6fe16bf9bb98 /build/common.gypi
parent2bdcb3f999fc2c2608ca96e64508e4ba81ee6891 (diff)
downloadchromium_src-3cfa96a63ef150e8b029330726d8e6a7ca178781.zip
chromium_src-3cfa96a63ef150e8b029330726d8e6a7ca178781.tar.gz
chromium_src-3cfa96a63ef150e8b029330726d8e6a7ca178781.tar.bz2
Allow to override the location of ASan blacklist.
This is needed to build a CrOS binary, because the buildsystem doesn't play well with relative paths. BUG=chromium-os:26919 Review URL: https://chromiumcodereview.appspot.com/9479002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123935 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/common.gypi')
-rw-r--r--build/common.gypi6
1 files changed, 4 insertions, 2 deletions
diff --git a/build/common.gypi b/build/common.gypi
index e1081dc..34bd175 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -208,6 +208,7 @@
# -faddress-sanitizer only works with clang, but asan=1 implies clang=1
# See https://sites.google.com/a/chromium.org/dev/developers/testing/addresssanitizer
'asan%': 0,
+ 'asan_blacklist%': '<(PRODUCT_DIR)/../../third_party/asan/ignore.txt',
# Use the provided profiled order file to link Chrome image with it.
# This makes Chrome faster by better using CPU cache when executing code.
@@ -458,6 +459,7 @@
'notifications%': '<(notifications)',
'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)',
'asan%': '<(asan)',
+ 'asan_blacklist%': '<(asan_blacklist)',
'order_text_section%': '<(order_text_section)',
'enable_register_protocol_handler%': '<(enable_register_protocol_handler)',
'enable_web_intents%': '<(enable_web_intents)',
@@ -1964,7 +1966,7 @@
'-faddress-sanitizer',
'-fno-omit-frame-pointer',
'-w',
- '-mllvm', '-asan-blacklist=<(PRODUCT_DIR)/../../third_party/asan/ignore.txt',
+ '-mllvm', '-asan-blacklist=<(asan_blacklist)',
],
'ldflags': [
'-faddress-sanitizer',
@@ -2387,7 +2389,7 @@
'OTHER_CFLAGS': [
'-faddress-sanitizer',
'-w',
- '-mllvm', '-asan-blacklist=<(PRODUCT_DIR)/../../third_party/asan/ignore.txt',
+ '-mllvm', '-asan-blacklist=<(asan_blacklist)',
],
'OTHER_LDFLAGS': [
'-faddress-sanitizer',