X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=CMakeLists.txt;h=631f20e4e747d1573f2e62fd1e7fd477eb0c5894;hb=f204228b783315c98dc515137ff8e255f6f02dd1;hp=895e2f7168705fb529fa37077d2df6078012fde7;hpb=84bb3a2af228e0ee04d4b872cd0760f74253d3a3;p=oota-llvm.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 895e2f71687..631f20e4e74 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -153,7 +153,7 @@ endif() option(LLVM_ENABLE_PEDANTIC "Compile with pedantic enabled." ON) option(LLVM_ENABLE_WERROR "Fail and stop if a warning is triggered." OFF) -if( uppercase_CMAKE_BUILD_TYPE STREQUAL "RELEASE" ) +if( NOT uppercase_CMAKE_BUILD_TYPE STREQUAL "DEBUG" ) option(LLVM_ENABLE_ASSERTIONS "Enable assertions" OFF) else() option(LLVM_ENABLE_ASSERTIONS "Enable assertions" ON)