[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:
Alexey Samsonov 2013-04-12 07:14:04 +00:00
parent 0d725b1408
commit 1a345ad502
2 changed files with 1 additions and 5 deletions

View File

@ -61,9 +61,7 @@ clang_msan_cflags = ["-fsanitize=memory",
"-mno-omit-leaf-frame-pointer", "-mno-omit-leaf-frame-pointer",
"-fno-omit-frame-pointer", "-fno-omit-frame-pointer",
"-fno-optimize-sibling-calls", "-fno-optimize-sibling-calls",
"-g", "-g"]
"-fPIE",
"-pie"]
clang_msan_cxxflags = ["-ccc-cxx "] + clang_msan_cflags clang_msan_cxxflags = ["-ccc-cxx "] + clang_msan_cflags
config.substitutions.append( ("%clang_msan ", config.substitutions.append( ("%clang_msan ",
" ".join([config.clang] + clang_msan_cflags) + " ".join([config.clang] + clang_msan_cflags) +

View File

@ -47,7 +47,6 @@ set(MSAN_UNITTEST_COMMON_CFLAGS
-I${COMPILER_RT_SOURCE_DIR}/lib/msan -I${COMPILER_RT_SOURCE_DIR}/lib/msan
-std=c++0x -std=c++0x
-stdlib=libc++ -stdlib=libc++
-fPIE
-g -g
-O2 -O2
-fno-exceptions -fno-exceptions
@ -62,7 +61,6 @@ set(MSAN_UNITTEST_INSTRUMENTED_CFLAGS
) )
set(MSAN_UNITTEST_LINK_FLAGS set(MSAN_UNITTEST_LINK_FLAGS
-fsanitize=memory -fsanitize=memory
-pie
-ldl -ldl
# FIXME: we build libcxx without cxxabi and need libstdc++ to provide it. # FIXME: we build libcxx without cxxabi and need libstdc++ to provide it.
-lstdc++ -lstdc++