summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--build/common.gypi3
-rw-r--r--chrome/chrome_tests.gypi14
2 files changed, 16 insertions, 1 deletions
diff --git a/build/common.gypi b/build/common.gypi
index ef9b233..26868ae 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -1759,7 +1759,8 @@
# Only in the linux section for now, since ASAN doesn't
# work on Mac yet.
'cflags': [
- '-fasan -w',
+ '-fasan',
+ '-w',
],
'ldflags': [
'-fasan',
diff --git a/chrome/chrome_tests.gypi b/chrome/chrome_tests.gypi
index 431e05a..63076e4 100644
--- a/chrome/chrome_tests.gypi
+++ b/chrome/chrome_tests.gypi
@@ -15,6 +15,17 @@
'test/automation/tab_proxy.cc',
'test/automation/tab_proxy.h',
],
+ 'pyautolib_libraries': [
+ ],
+ 'conditions': [
+ ['asan==1', {
+ 'pyautolib_libraries': [
+ # Link in the libasan32.a because this binary will be loaded by
+ # Python that does not have libasan in.
+ '-lasan32',
+ ]
+ }],
+ ],
},
'targets': [
{
@@ -3667,6 +3678,9 @@
'-Wno-uninitialized',
'-Wno-self-assign', # to keep clang happy for generated code.
],
+ 'libraries': [
+ '<@(pyautolib_libraries)',
+ ],
'sources': [
'test/automation/proxy_launcher.cc',
'test/automation/proxy_launcher.h',