Revision: 22109
Author: [email protected]
Date: Tue Jul 1 09:04:48 2014 UTC
Log: Add msan build option.
Currently works only in combination with i18nsupport=off.
[email protected]
Review URL: https://codereview.chromium.org/367623002
http://code.google.com/p/v8/source/detail?r=22109
Modified:
/branches/bleeding_edge/Makefile
/branches/bleeding_edge/build/standalone.gypi
=======================================
--- /branches/bleeding_edge/Makefile Thu Jun 26 10:49:27 2014 UTC
+++ /branches/bleeding_edge/Makefile Tue Jul 1 09:04:48 2014 UTC
@@ -145,7 +145,13 @@
export LINK=$(asan)
export ASAN_SYMBOLIZER_PATH="$(dir $(asan))llvm-symbolizer"
endif
-
+# msan=/path/to/clang++
+ifneq ($(strip $(msan)),)
+ GYPFLAGS += -Dmsan=1 -Dmsan_track_origins=2
+ export CXX=$(msan)
+ export CXX_host=$(msan)
+ export LINK=$(msan)
+endif
# arm specific flags.
# arm_version=<number | "default">
ifneq ($(strip $(arm_version)),)
=======================================
--- /branches/bleeding_edge/build/standalone.gypi Fri Jun 27 08:42:17 2014
UTC
+++ /branches/bleeding_edge/build/standalone.gypi Tue Jul 1 09:04:48 2014
UTC
@@ -35,6 +35,7 @@
'component%': 'static_library',
'clang%': 0,
'asan%': 0,
+ 'msan%': 0,
'visibility%': 'hidden',
'v8_enable_backtrace%': 0,
'v8_enable_i18n_support%': 1,
@@ -184,6 +185,22 @@
'-fsanitize=address',
],
},
+ }],
+ ['msan==1', {
+ 'target_defaults': {
+ 'cflags_cc+': [
+ '-fno-omit-frame-pointer',
+ '-fsanitize-memory-track-origins=2',
+ '-fsanitize=memory',
+ '-w', # http://crbug.com/162783
+ ],
+ 'cflags_cc!': [
+ '-fomit-frame-pointer',
+ ],
+ 'ldflags': [
+ '-fsanitize=memory',
+ ],
+ },
}],
['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \
or OS=="netbsd"', {
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.