diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2017-01-05 03:41:41 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2017-01-05 03:41:41 +0000 |
commit | e78a0bf3822cbd95f71611c940e253481ec36bb1 (patch) | |
tree | 14e6aed9d3deb7ac700e004ed9ce7b853788ad62 /cmake/Modules | |
parent | 73826d7ed91bb46f5561dc276c2c7a0e76f7f822 (diff) |
[gtest] Teach the sanitizer's custom gtest compilations to disable
a warning that 'gtest-all.cc' directly triggers in the newer 1.8.0
version.
This should fix a warning in folks' build and bring a couple of -Werror
bots back to life.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@291070 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake/Modules')
-rw-r--r-- | cmake/Modules/AddCompilerRT.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/Modules/AddCompilerRT.cmake b/cmake/Modules/AddCompilerRT.cmake index 42ae7ad1e..c2863d5f2 100644 --- a/cmake/Modules/AddCompilerRT.cmake +++ b/cmake/Modules/AddCompilerRT.cmake @@ -256,6 +256,7 @@ set(COMPILER_RT_GTEST_CFLAGS ) append_list_if(COMPILER_RT_DEBUG -DSANITIZER_DEBUG=1 COMPILER_RT_UNITTEST_CFLAGS) +append_list_if(COMPILER_RT_HAS_WCOVERED_SWITCH_DEFAULT_FLAG -Wno-covered-switch-default COMPILER_RT_UNITTEST_CFLAGS) if(MSVC) # clang doesn't support exceptions on Windows yet. |