forked from OSchip/llvm-project
[MSan] don't build tests with -fPIE/-pie, as these flags are implied by -fsanitize=memory now
llvm-svn: 179366
This commit is contained in:
parent
0d725b1408
commit
1a345ad502
|
@ -61,9 +61,7 @@ clang_msan_cflags = ["-fsanitize=memory",
|
|||
"-mno-omit-leaf-frame-pointer",
|
||||
"-fno-omit-frame-pointer",
|
||||
"-fno-optimize-sibling-calls",
|
||||
"-g",
|
||||
"-fPIE",
|
||||
"-pie"]
|
||||
"-g"]
|
||||
clang_msan_cxxflags = ["-ccc-cxx "] + clang_msan_cflags
|
||||
config.substitutions.append( ("%clang_msan ",
|
||||
" ".join([config.clang] + clang_msan_cflags) +
|
||||
|
|
|
@ -47,7 +47,6 @@ set(MSAN_UNITTEST_COMMON_CFLAGS
|
|||
-I${COMPILER_RT_SOURCE_DIR}/lib/msan
|
||||
-std=c++0x
|
||||
-stdlib=libc++
|
||||
-fPIE
|
||||
-g
|
||||
-O2
|
||||
-fno-exceptions
|
||||
|
@ -62,7 +61,6 @@ set(MSAN_UNITTEST_INSTRUMENTED_CFLAGS
|
|||
)
|
||||
set(MSAN_UNITTEST_LINK_FLAGS
|
||||
-fsanitize=memory
|
||||
-pie
|
||||
-ldl
|
||||
# FIXME: we build libcxx without cxxabi and need libstdc++ to provide it.
|
||||
-lstdc++
|
||||
|
|
Loading…
Reference in New Issue