Index: build/common.gypi |
diff --git a/build/common.gypi b/build/common.gypi |
index 9eb94f3b62828aa0d7dc85ee997c64c58eb56e2f..031e9339f79d35bce483400468435cd755739a53 100644 |
--- a/build/common.gypi |
+++ b/build/common.gypi |
@@ -402,6 +402,10 @@ |
'clang_load%': '', |
'clang_add_plugin%': '', |
+ # Enable building with ASAN. |
+ # See https://sites.google.com/a/chromium.org/dev/developers/testing/addresssanitizer |
+ 'asan%': 0, |
Nico
2011/08/05 18:37:19
Should setting this set 'clang' to 1 automatically
glotov
2011/08/10 18:10:30
Done.
|
+ |
# Enable sampling based profiler. |
# See http://google-perftools.googlecode.com/svn/trunk/doc/cpuprofile.html |
'profiling%': '0', |
@@ -1511,6 +1515,14 @@ |
], |
}]], |
}], |
+ ['clang==1 and asan==1', { |
+ 'target_conditions': [ |
Nico
2011/08/05 18:37:19
I think the 'target_conditions'/ '_toolset' part s
glotov
2011/08/10 18:10:30
Done.
|
+ ['_toolset=="target"', { |
+ 'cflags': [ |
+ '-fasan', |
+ ], |
+ }]], |
+ }], |
['no_strict_aliasing==1', { |
'cflags': [ |
'-fno-strict-aliasing', |