[compiler-rt] r204234 - [CMake] Build sanitizer unit tests with -std=c++11
Alexey Samsonov
samsonov at google.com
Wed Mar 19 06:57:33 PDT 2014
Author: samsonov
Date: Wed Mar 19 08:57:33 2014
New Revision: 204234
URL: http://llvm.org/viewvc/llvm-project?rev=204234&view=rev
Log:
[CMake] Build sanitizer unit tests with -std=c++11
Modified:
compiler-rt/trunk/lib/asan/tests/CMakeLists.txt
compiler-rt/trunk/lib/msan/tests/CMakeLists.txt
compiler-rt/trunk/lib/sanitizer_common/tests/CMakeLists.txt
compiler-rt/trunk/lib/tsan/tests/CMakeLists.txt
Modified: compiler-rt/trunk/lib/asan/tests/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/tests/CMakeLists.txt?rev=204234&r1=204233&r2=204234&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/tests/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/asan/tests/CMakeLists.txt Wed Mar 19 08:57:33 2014
@@ -30,6 +30,7 @@ set(ASAN_UNITTEST_COMMON_CFLAGS
-Wno-format
-Werror
-Werror=sign-compare
+ -std=c++11
-g
-O2)
append_if(COMPILER_RT_HAS_WNO_VARIADIC_MACROS_FLAG -Wno-variadic-macros ASAN_UNITTEST_COMMON_CFLAGS)
Modified: compiler-rt/trunk/lib/msan/tests/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/msan/tests/CMakeLists.txt?rev=204234&r1=204233&r2=204234&view=diff
==============================================================================
--- compiler-rt/trunk/lib/msan/tests/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/msan/tests/CMakeLists.txt Wed Mar 19 08:57:33 2014
@@ -44,7 +44,7 @@ set(MSAN_UNITTEST_COMMON_CFLAGS
-I${COMPILER_RT_SOURCE_DIR}/include
-I${COMPILER_RT_SOURCE_DIR}/lib
-I${COMPILER_RT_SOURCE_DIR}/lib/msan
- -std=c++0x
+ -std=c++11
-stdlib=libc++
-g
-O2
Modified: compiler-rt/trunk/lib/sanitizer_common/tests/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/tests/CMakeLists.txt?rev=204234&r1=204233&r2=204234&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/tests/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/sanitizer_common/tests/CMakeLists.txt Wed Mar 19 08:57:33 2014
@@ -37,7 +37,7 @@ set(SANITIZER_TEST_CFLAGS_COMMON
-I${COMPILER_RT_SOURCE_DIR}/lib
-I${COMPILER_RT_SOURCE_DIR}/lib/sanitizer_common
-DGTEST_HAS_RTTI=0
- -O2 -g -fno-rtti
+ -std=c++11 -O2 -g -fno-rtti
-Wall -Werror -Werror=sign-compare)
set(SANITIZER_TEST_LINK_FLAGS_COMMON
Modified: compiler-rt/trunk/lib/tsan/tests/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/tests/CMakeLists.txt?rev=204234&r1=204233&r2=204234&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/tests/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/tsan/tests/CMakeLists.txt Wed Mar 19 08:57:33 2014
@@ -9,6 +9,7 @@ set(TSAN_UNITTEST_CFLAGS
${COMPILER_RT_GTEST_INCLUDE_CFLAGS}
-I${COMPILER_RT_SOURCE_DIR}/lib
-I${COMPILER_RT_SOURCE_DIR}/lib/tsan/rtl
+ -std=c++11
-DGTEST_HAS_RTTI=0)
set(TSAN_RTL_HEADERS)
More information about the llvm-commits
mailing list