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

Unified Diff: build/common.gypi

Issue 10392105: Make ASAN options apply to target binaries only (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 8 years, 7 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 8e6646d87f6166833322aacc2d03cc66f95a0049..2d7f1b6f99f09932da9d142058b5849509bc5f37 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -2208,16 +2208,20 @@
],
}],
['asan==1', {
- 'cflags': [
- '-faddress-sanitizer',
- '-fno-omit-frame-pointer',
- '-w',
- ],
- 'ldflags': [
- '-faddress-sanitizer',
- ],
- 'defines': [
- 'ADDRESS_SANITIZER',
+ 'target_conditions': [
+ ['_toolset=="target"', {
+ 'cflags': [
+ '-faddress-sanitizer',
+ '-fno-omit-frame-pointer',
+ '-w',
+ ],
+ 'ldflags': [
+ '-faddress-sanitizer',
+ ],
+ 'defines': [
+ 'ADDRESS_SANITIZER',
+ ],
+ }],
],
}],
['order_profiling!=0 and (chromeos==1 or OS=="linux")', {
« 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