diff options
author | eugenis@google.com <eugenis@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-16 11:42:12 +0000 |
---|---|---|
committer | eugenis@google.com <eugenis@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-16 11:42:12 +0000 |
commit | 3984aafb91203f0a80475373a157b967a1ff1735 (patch) | |
tree | 08b1b3b6ac6c57b12aff808a0b1f5401b6c2b127 /build/common.gypi | |
parent | 3b05159e2a27cb786c2dfb2774f053d9bea77534 (diff) | |
download | chromium_src-3984aafb91203f0a80475373a157b967a1ff1735.zip chromium_src-3984aafb91203f0a80475373a157b967a1ff1735.tar.gz chromium_src-3984aafb91203f0a80475373a157b967a1ff1735.tar.bz2 |
Disable ASan for host targets on Android.
They are always x86_32, and Clang only builds a x86_64 ASan runtime by default.
BUG=none
TEST=none
Review URL: https://chromiumcodereview.appspot.com/9413005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122279 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/common.gypi')
-rw-r--r-- | build/common.gypi | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/build/common.gypi b/build/common.gypi index 298ea62..8bd7ab0 100644 --- a/build/common.gypi +++ b/build/common.gypi @@ -2243,7 +2243,14 @@ }], # Settings for building host targets using the system toolchain. ['_toolset=="host"', { + 'cflags!': [ + # Due to issues in Clang build system, using ASan on 32-bit + # binaries on x86_64 host is problematic. + # TODO(eugenis): re-enable. + '-faddress-sanitizer', + ], 'ldflags!': [ + '-faddress-sanitizer', '-Wl,-z,noexecstack', '-Wl,--gc-sections', '-Wl,-O1', |