diff options
author | Alexey Samsonov <samsonov@google.com> | 2014-03-19 13:57:33 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2014-03-19 13:57:33 +0000 |
commit | 085e9a467501fbdbca63c56b58716471831e5b5d (patch) | |
tree | b5cec5a04d548160adfc28533fb7de3e85f98a03 /lib | |
parent | 75ac702b0cde5be4497a023b3d86de9cb1f859b2 (diff) |
[CMake] Build sanitizer unit tests with -std=c++11
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204234 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/asan/tests/CMakeLists.txt | 1 | ||||
-rw-r--r-- | lib/msan/tests/CMakeLists.txt | 2 | ||||
-rw-r--r-- | lib/sanitizer_common/tests/CMakeLists.txt | 2 | ||||
-rw-r--r-- | lib/tsan/tests/CMakeLists.txt | 1 |
4 files changed, 4 insertions, 2 deletions
diff --git a/lib/asan/tests/CMakeLists.txt b/lib/asan/tests/CMakeLists.txt index 406b70453..b33653d55 100644 --- a/lib/asan/tests/CMakeLists.txt +++ b/lib/asan/tests/CMakeLists.txt @@ -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) diff --git a/lib/msan/tests/CMakeLists.txt b/lib/msan/tests/CMakeLists.txt index 39997d721..84f789c2f 100644 --- a/lib/msan/tests/CMakeLists.txt +++ b/lib/msan/tests/CMakeLists.txt @@ -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 diff --git a/lib/sanitizer_common/tests/CMakeLists.txt b/lib/sanitizer_common/tests/CMakeLists.txt index bf991dd93..10a345356 100644 --- a/lib/sanitizer_common/tests/CMakeLists.txt +++ b/lib/sanitizer_common/tests/CMakeLists.txt @@ -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 diff --git a/lib/tsan/tests/CMakeLists.txt b/lib/tsan/tests/CMakeLists.txt index 1e095f142..445902499 100644 --- a/lib/tsan/tests/CMakeLists.txt +++ b/lib/tsan/tests/CMakeLists.txt @@ -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) |