Use --driver-mode=g++ instead of -ccc-cxx; required after Clang r186605

llvm-svn: 186607
This commit is contained in:
Hans Wennborg 2013-07-18 20:48:50 +00:00
parent 3d8f8ab54d
commit 2e304b6ffd
4 changed files with 6 additions and 5 deletions

View File

@ -57,9 +57,10 @@ clang_asan_cflags = (" -fsanitize=address"
+ " -fno-optimize-sibling-calls"
+ " -g"
+ bits_cflag)
clang_asan_cxxflags = " -ccc-cxx" + clang_asan_cflags
clang_asan_cxxflags = " --driver-mode=g++" + clang_asan_cflags
config.substitutions.append( ("%clang ", " " + config.clang + bits_cflag + " "))
config.substitutions.append( ("%clangxx ", (" " + config.clang + " -ccc-cxx" +
config.substitutions.append( ("%clangxx ", (" " + config.clang +
" --driver-mode=g++" +
bits_cflag + " ")) )
config.substitutions.append( ("%clang_asan ", (" " + config.clang + " " +
clang_asan_cflags + " ")) )

View File

@ -16,7 +16,7 @@ def get_required_attr(config, attr_name):
lsan_lit_src_root = get_required_attr(config, 'lsan_lit_src_root')
config.test_source_root = os.path.join(lsan_lit_src_root, 'TestCases')
clang_cxxflags = ("-ccc-cxx "
clang_cxxflags = ("--driver-mode=g++ "
+ "-g "
+ "-O0 "
+ "-m64 ")

View File

@ -54,7 +54,7 @@ clang_msan_cflags = ["-fsanitize=memory",
"-fno-omit-frame-pointer",
"-fno-optimize-sibling-calls",
"-g"]
clang_msan_cxxflags = ["-ccc-cxx "] + clang_msan_cflags
clang_msan_cxxflags = ["--driver-mode=g++ "] + clang_msan_cflags
config.substitutions.append( ("%clang_msan ",
" ".join([config.clang] + clang_msan_cflags) +
" ") )

View File

@ -62,7 +62,7 @@ clang_tsan_cflags = ("-fsanitize=thread "
+ "-Wall "
+ "-lpthread "
+ "-ldl ")
clang_tsan_cxxflags = "-ccc-cxx " + clang_tsan_cflags
clang_tsan_cxxflags = "--driver-mode=g++ " + clang_tsan_cflags
config.substitutions.append( ("%clangxx_tsan ", (" " + config.clang + " " +
clang_tsan_cxxflags + " ")) )
config.substitutions.append( ("%clang_tsan ", (" " + config.clang + " " +