Don't define NDEBUG on MSVC_IDE and XCode builds. Fixes PR9155.
authorOscar Fuentes <ofv@wanadoo.es>
Sun, 6 Feb 2011 19:07:06 +0000 (19:07 +0000)
committerOscar Fuentes <ofv@wanadoo.es>
Sun, 6 Feb 2011 19:07:06 +0000 (19:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124985 91177308-0d34-0410-b5e6-96231b3b80d8

cmake/modules/HandleLLVMOptions.cmake

index d4096e25933c6000afd753662ee9bd6b112bb95b..8ac79709c041379d05a657004327fc048937d889 100644 (file)
@@ -33,7 +33,9 @@ if( LLVM_ENABLE_ASSERTIONS )
   endif()
 else()
   if( NOT uppercase_CMAKE_BUILD_TYPE STREQUAL "RELEASE" )
-    add_definitions( -DNDEBUG )
+    if( NOT MSVC_IDE AND NOT XCODE )
+      add_definitions( -DNDEBUG )
+    endif()
   endif()
 endif()