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

Unified Diff: build/standalone.gypi

Issue 802583003: [test] Make msan work for v8 stand-alone. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix libc++ path Created 5 years, 11 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 | « DEPS ('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 5a29d99f7f7550503972f894deded9aad0218339..14940ee697779aa2defc8fc7e93c8da1857ad719 100644
--- a/build/standalone.gypi
+++ b/build/standalone.gypi
@@ -36,6 +36,11 @@
'make_clang_dir%': '../third_party/llvm-build/Release+Asserts',
'clang_xcode%': 0,
'asan%': 0,
+ 'msan%': 0,
+ # Track where uninitialized memory originates from. From fastest to
+ # slowest: 0 - no tracking, 1 - track only the initial allocation site, 2
+ # - track the chain of stores leading from allocation site to use site.
+ 'msan_track_origins%': 1,
'tsan%': 0,
'visibility%': 'hidden',
'v8_enable_backtrace%': 0,
@@ -199,34 +204,60 @@
],
},
'conditions': [
- ['asan==1 and OS!="mac"', {
+ ['(asan==1 or msan==1 or tsan==1) and OS!="mac"', {
'target_defaults': {
'cflags_cc+': [
'-fno-omit-frame-pointer',
'-gline-tables-only',
- '-fsanitize=address',
- '-w', # http://crbug.com/162783
],
'cflags!': [
'-fomit-frame-pointer',
],
+ 'ldflags!': [
+ # Functions interposed by the sanitizers can make ld think
+ # that some libraries aren't needed when they actually are,
+ # http://crbug.com/234010. As workaround, disable --as-needed.
+ '-Wl,--as-needed',
+ ],
+ 'dependencies': [
+ # Use libc++ (third_party/libc++ and third_party/libc++abi) instead of
+ # stdlibc++ as standard library. This is intended to use for instrumented
+ # builds.
+ '<(DEPTH)/buildtools/third_party/libc++/libc++.gyp:libcxx_proxy',
+ ],
+ },
+ }],
+ ['asan==1 and OS!="mac"', {
+ 'target_defaults': {
+ 'cflags_cc+': [
+ '-fsanitize=address',
+ ],
'ldflags': [
'-fsanitize=address',
],
},
}],
+ ['msan==1 and OS!="mac"', {
+ 'target_defaults': {
+ 'cflags_cc+': [
+ '-fsanitize=memory',
+ '-fsanitize-memory-track-origins=<(msan_track_origins)',
+ ],
+ 'ldflags': [
+ '-fsanitize=memory',
+ ],
+ 'defines': [
+ 'MEMORY_SANITIZER',
+ ],
+ },
+ }],
['tsan==1 and OS!="mac"', {
'target_defaults': {
'cflags+': [
- '-fno-omit-frame-pointer',
jochen (gone - plz use gerrit) 2015/01/12 14:23:32 why these changes?
- '-gline-tables-only',
'-fsanitize=thread',
'-fPIC',
'-Wno-c++11-extensions',
],
- 'cflags!': [
- '-fomit-frame-pointer',
- ],
'ldflags': [
'-fsanitize=thread',
'-pie',
« no previous file with comments | « DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698