diff options
-rw-r--r-- | compiler-rt/lib/asan/tests/CMakeLists.txt | 1 | ||||
-rw-r--r-- | compiler-rt/lib/msan/tests/CMakeLists.txt | 2 | ||||
-rw-r--r-- | compiler-rt/lib/sanitizer_common/tests/CMakeLists.txt | 2 | ||||
-rw-r--r-- | compiler-rt/lib/tsan/tests/CMakeLists.txt | 1 |
4 files changed, 4 insertions, 2 deletions
diff --git a/compiler-rt/lib/asan/tests/CMakeLists.txt b/compiler-rt/lib/asan/tests/CMakeLists.txt index 406b70453de..b33653d559f 100644 --- a/compiler-rt/lib/asan/tests/CMakeLists.txt +++ b/compiler-rt/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/compiler-rt/lib/msan/tests/CMakeLists.txt b/compiler-rt/lib/msan/tests/CMakeLists.txt index 39997d72185..84f789c2f9e 100644 --- a/compiler-rt/lib/msan/tests/CMakeLists.txt +++ b/compiler-rt/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/compiler-rt/lib/sanitizer_common/tests/CMakeLists.txt b/compiler-rt/lib/sanitizer_common/tests/CMakeLists.txt index bf991dd9340..10a3453562c 100644 --- a/compiler-rt/lib/sanitizer_common/tests/CMakeLists.txt +++ b/compiler-rt/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/compiler-rt/lib/tsan/tests/CMakeLists.txt b/compiler-rt/lib/tsan/tests/CMakeLists.txt index 1e095f142e0..445902499a5 100644 --- a/compiler-rt/lib/tsan/tests/CMakeLists.txt +++ b/compiler-rt/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) |