summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Kaylor <andrew.kaylor@intel.com>2015-04-07 19:01:01 +0000
committerAndrew Kaylor <andrew.kaylor@intel.com>2015-04-07 19:01:01 +0000
commit73bd76acbec04c03a82a2eb46ddb88fd9ea84332 (patch)
tree34b1ec0a8a107cda8b2c33a2f6338cc70d727892
parentea1b394bf491f465d9071f4d8390ed501bb1e9b0 (diff)
downloadbcm5719-llvm-73bd76acbec04c03a82a2eb46ddb88fd9ea84332.tar.gz
bcm5719-llvm-73bd76acbec04c03a82a2eb46ddb88fd9ea84332.zip
Enable W4 warnings by default for MSVC builds
llvm-svn: 234343
-rw-r--r--llvm/CMakeLists.txt9
1 files changed, 1 insertions, 8 deletions
diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt
index 931e28e4efc..65d980253b0 100644
--- a/llvm/CMakeLists.txt
+++ b/llvm/CMakeLists.txt
@@ -233,14 +233,7 @@ list(REMOVE_DUPLICATES LLVM_TARGETS_TO_BUILD)
include(AddLLVMDefinitions)
option(LLVM_ENABLE_PIC "Build Position-Independent Code" ON)
-
-# MSVC has a gazillion warnings with this.
-if( MSVC )
- option(LLVM_ENABLE_WARNINGS "Enable compiler warnings." OFF)
-else()
- option(LLVM_ENABLE_WARNINGS "Enable compiler warnings." ON)
-endif()
-
+option(LLVM_ENABLE_WARNINGS "Enable compiler warnings." ON)
option(LLVM_ENABLE_MODULES "Compile with C++ modules enabled." OFF)
option(LLVM_ENABLE_CXX1Y "Compile with C++1y enabled." OFF)
option(LLVM_ENABLE_LIBCXX "Use libc++ if available." OFF)
OpenPOWER on IntegriCloud