Index: build/standalone.gypi |
diff --git a/build/standalone.gypi b/build/standalone.gypi |
index cae63fe7ac58eb691dbc9f2d356bc969234647cb..79c563f3b56abfd1374f01bca6970001b5478909 100644 |
--- a/build/standalone.gypi |
+++ b/build/standalone.gypi |
@@ -34,6 +34,7 @@ |
'variables': { |
'component%': 'static_library', |
'clang%': 0, |
+ 'asan%': 0, |
'visibility%': 'hidden', |
'v8_enable_backtrace%': 0, |
'v8_enable_i18n_support%': 1, |
@@ -169,6 +170,22 @@ |
], |
}, |
'conditions': [ |
+ ['asan==1', { |
+ 'target_defaults': { |
jochen (gone - plz use gerrit)
2014/03/13 10:12:45
does it also work if you use conditions: asan==1:
|
+ 'cflags_cc+': [ |
+ '-fno-omit-frame-pointer', |
+ '-gline-tables-only', |
+ '-fsanitize=address', |
+ '-w', # http://crbug.com/162783 |
+ ], |
+ 'cflags_cc!': [ |
+ '-fomit-frame-pointer', |
+ ], |
+ 'ldflags': [ |
+ '-fsanitize=address', |
+ ], |
+ } |
+ }], |
['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ |
or OS=="netbsd"', { |
'target_defaults': { |