[compiler-rt] r284512 - [tsan] Always use -std=c++11 in TSan tests

Kuba Brecka via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 18 11:33:43 PDT 2016


Author: kuba.brecka
Date: Tue Oct 18 13:33:42 2016
New Revision: 284512

URL: http://llvm.org/viewvc/llvm-project?rev=284512&view=rev
Log:
[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


Modified:
    compiler-rt/trunk/test/tsan/lit.cfg

Modified: compiler-rt/trunk/test/tsan/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/lit.cfg?rev=284512&r1=284511&r2=284512&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/lit.cfg (original)
+++ compiler-rt/trunk/test/tsan/lit.cfg Tue Oct 18 13:33:42 2016
@@ -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
   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]




More information about the llvm-commits mailing list