diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2009-12-01 19:11:36 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2009-12-01 19:11:36 +0000 |
| commit | 04433fe3e1d61120b50c4e30e3933c62eeb8f6c7 (patch) | |
| tree | 6d971b876b76d531c8502b2a74aa8cc5cd3fd3d8 | |
| parent | f8a04a1d6e915816cc0630b5ba3248f709235e67 (diff) | |
| download | bcm5719-llvm-04433fe3e1d61120b50c4e30e3933c62eeb8f6c7.tar.gz bcm5719-llvm-04433fe3e1d61120b50c4e30e3933c62eeb8f6c7.zip | |
Don't default warnings to ON on MSVC, the spew is enough to triple the build time. :/
llvm-svn: 90251
| -rw-r--r-- | llvm/CMakeLists.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt index 3ad466901ac..9bce0392db4 100644 --- a/llvm/CMakeLists.txt +++ b/llvm/CMakeLists.txt @@ -191,7 +191,13 @@ set( CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${LLVM_BINARY_DIR}/lib ) add_llvm_definitions( -D__STDC_LIMIT_MACROS ) add_llvm_definitions( -D__STDC_CONSTANT_MACROS ) -option(LLVM_ENABLE_WARNINGS "Enable compiler warnings." ON) +# MSVC has a gazillion warnings with this. +if( MSVC ) + option(LLVM_ENABLE_WARNINGS "Enable compiler warnings." OFF) +else( MSVC ) + option(LLVM_ENABLE_WARNINGS "Enable compiler warnings." ON) +endif() + option(LLVM_ENABLE_PEDANTIC "Compile with pedantic enabled." ON) option(LLVM_ENABLE_WERROR "Fail and stop if a warning is triggered." OFF) |

