[llvm-commits] [llvm] r90251 - /llvm/trunk/CMakeLists.txt
Daniel Dunbar
daniel at zuster.org
Tue Dec 1 11:11:36 PST 2009
Author: ddunbar
Date: Tue Dec 1 13:11:36 2009
New Revision: 90251
URL: http://llvm.org/viewvc/llvm-project?rev=90251&view=rev
Log:
Don't default warnings to ON on MSVC, the spew is enough to triple the build time. :/
Modified:
llvm/trunk/CMakeLists.txt
Modified: llvm/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/CMakeLists.txt?rev=90251&r1=90250&r2=90251&view=diff
==============================================================================
--- llvm/trunk/CMakeLists.txt (original)
+++ llvm/trunk/CMakeLists.txt Tue Dec 1 13:11:36 2009
@@ -191,7 +191,13 @@
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)
More information about the llvm-commits
mailing list