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

Unified Diff: build/common.gypi

Issue 7541045: Adding GYP_DEFINES=ASAN to enable ASAN build (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 9 years, 4 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/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',
« 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