summaryrefslogtreecommitdiffstats
path: root/chrome/nacl.gypi
diff options
context:
space:
mode:
authortimurrrr@chromium.org <timurrrr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-07 09:31:05 +0000
committertimurrrr@chromium.org <timurrrr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-07 09:31:05 +0000
commited186a6177e4949b59cb3a97fd395fec9cd23f59 (patch)
tree8b7d96be6ac388d11e7e63f2df61d46c826c31e5 /chrome/nacl.gypi
parenta9ab81965369808d04d31dff8ef885e16d0b8406 (diff)
downloadchromium_src-ed186a6177e4949b59cb3a97fd395fec9cd23f59.zip
chromium_src-ed186a6177e4949b59cb3a97fd395fec9cd23f59.tar.gz
chromium_src-ed186a6177e4949b59cb3a97fd395fec9cd23f59.tar.bz2
Support building NaCl plugin with ASan.
Disables ASan instrumentation in nacl_helper_bootstrap. Allows undefined symbols in the plugin shared library. Disables an llvm optimization that replaces the loop in my_bzero with a call to memset. The last one in not specific to ASan, and is required for building Release with Clang on Linux. Landing a patch for Evgeniy Stepanov, originally reviewed at http://codereview.chromium.org/8135029/ TEST=follow http://dev.chromium.org/developers/testing/addresssanitizer without disable_nacl=1 TBR=noelallen@google.com,bradn,eugenis Review URL: http://codereview.chromium.org/8194008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104455 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/nacl.gypi')
-rw-r--r--chrome/nacl.gypi13
1 files changed, 13 insertions, 0 deletions
diff --git a/chrome/nacl.gypi b/chrome/nacl.gypi
index 5c7d262..f5bf28a 100644
--- a/chrome/nacl.gypi
+++ b/chrome/nacl.gypi
@@ -272,6 +272,19 @@
'-fno-pic', '-fno-PIC',
'-fno-pie', '-fno-PIE',
],
+ 'cflags!': [
+ '-fasan',
+ '-w',
+ ],
+ 'conditions': [
+ ['clang==1', {
+ 'cflags': [
+ # Prevent llvm-opt from replacing my_bzero with a call
+ # to memset
+ '-ffreestanding',
+ ],
+ }],
+ ],
},
{
'target_name': 'nacl_helper_bootstrap_raw',