[PATCH] D25740: [tsan] Always use -std=c++11 in TSan tests
Kuba Brecka via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 18 11:12:20 PDT 2016
kubabrecka created this revision.
kubabrecka added reviewers: dvyukov, kcc, eugenis.
kubabrecka added subscribers: llvm-commits, zaks.anna.
kubabrecka added a project: Sanitizers.
We currently only pass -std=c++11 when we have an instrumented libcxx.
https://reviews.llvm.org/D25740
Files:
test/tsan/lit.cfg
Index: test/tsan/lit.cfg
===================================================================
--- test/tsan/lit.cfg
+++ test/tsan/lit.cfg
@@ -44,7 +44,7 @@
[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 @@
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]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25740.75042.patch
Type: text/x-patch
Size: 1077 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161018/bcd40b53/attachment.bin>
More information about the llvm-commits
mailing list