Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(652)

Unified Diff: build/standalone.gypi

Issue 196943004: Add ASAN option to stand-alone gyp config. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: More improvements. Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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': {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698