Index: build/standalone.gypi |
diff --git a/build/standalone.gypi b/build/standalone.gypi |
index cae63fe7ac58eb691dbc9f2d356bc969234647cb..b9a4f822569be4ee89a8d0cdda613d4ead1351a0 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,24 @@ |
], |
}, |
'conditions': [ |
+ ['asan==1', { |
+ 'target_conditions': [ |
jochen (gone - plz use gerrit)
2014/03/13 08:25:27
why only for the target toolset?
|
+ ['_toolset=="target"', { |
+ 'cflags': [ |
+ '-fno-omit-frame-pointer', |
+ '-gline-tables-only', |
+ '-fsanitize=address', |
+ '-w', # http://crbug.com/162783 |
+ ], |
+ 'cflags!': [ |
+ '-fomit-frame-pointer', |
+ ], |
+ 'ldflags': [ |
+ '-fsanitize=address', |
+ ], |
+ }], |
+ ], |
+ }], |
['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ |
or OS=="netbsd"', { |
'target_defaults': { |