From: Andrew Kaylor Date: Tue, 7 Apr 2015 19:01:01 +0000 (+0000) Subject: Enable W4 warnings by default for MSVC builds X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=396e5a8fa94ac3c14199bdb47665da39d0a5acad;p=oota-llvm.git Enable W4 warnings by default for MSVC builds git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234343 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 931e28e4efc..65d980253b0 100644 --- a/CMakeLists.txt +++ b/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)