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

Unified Diff: build/standalone.gypi

Issue 367623002: Add msan build option. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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
« Makefile ('K') | « Makefile ('k') | 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 cf448f38673559de322e675b5500f8de6e1905e0..92b5ff83097991fe078a983bcd0ab22544c019a4 100644
--- a/build/standalone.gypi
+++ b/build/standalone.gypi
@@ -35,6 +35,7 @@
'component%': 'static_library',
'clang%': 0,
'asan%': 0,
+ 'msan%': 0,
'visibility%': 'hidden',
'v8_enable_backtrace%': 0,
'v8_enable_i18n_support%': 1,
@@ -185,6 +186,22 @@
],
},
}],
+ ['msan==1', {
+ 'target_defaults': {
+ 'cflags_cc+': [
+ '-fno-omit-frame-pointer',
+ '-fsanitize-memory-track-origins=2',
earthdok 2014/07/01 12:13:22 -fsanitize-memory-track-origins can take values fr
+ '-fsanitize=memory',
+ '-w', # http://crbug.com/162783
earthdok 2014/07/01 12:13:22 The linked issue refers to ASan, not MSan. We don'
+ ],
+ 'cflags_cc!': [
+ '-fomit-frame-pointer',
+ ],
+ 'ldflags': [
+ '-fsanitize=memory',
+ ],
+ },
+ }],
['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \
or OS=="netbsd"', {
'target_defaults': {
« Makefile ('K') | « Makefile ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698