[tsan] Always use -std=c++11 in TSan tests
We currently only pass -std=c++11 when we have an instrumented libcxx. Differential Revision: https://reviews.llvm.org/D25740 llvm-svn: 284512
This commit is contained in:
parent
ecc3144031
commit
efdc36c802
|
|
@ -44,7 +44,7 @@ clang_tsan_cflags = (["-fsanitize=thread",
|
|||
[config.target_cflags] +
|
||||
config.debug_info_flags +
|
||||
extra_cflags)
|
||||
clang_tsan_cxxflags = config.cxx_mode_flags + clang_tsan_cflags
|
||||
clang_tsan_cxxflags = config.cxx_mode_flags + clang_tsan_cflags + ["-std=c++11"]
|
||||
# Add additional flags if we're using instrumented libc++.
|
||||
# Instrumented libcxx currently not supported on Darwin.
|
||||
if config.has_libcxx and config.host_os != 'Darwin':
|
||||
|
|
@ -54,8 +54,7 @@ if config.has_libcxx and config.host_os != 'Darwin':
|
|||
libcxx_incdir = os.path.join(libcxx_path, "include", "c++", "v1")
|
||||
libcxx_libdir = os.path.join(libcxx_path, "lib")
|
||||
libcxx_so = os.path.join(libcxx_libdir, "libc++.so")
|
||||
clang_tsan_cxxflags += ["-std=c++11",
|
||||
"-nostdinc++",
|
||||
clang_tsan_cxxflags += ["-nostdinc++",
|
||||
"-I%s" % libcxx_incdir,
|
||||
libcxx_so,
|
||||
"-Wl,-rpath=%s" % libcxx_libdir]
|
||||
|
|
|
|||
Loading…
Reference in New Issue