[llvm-commits] [llvm] r124985 - /llvm/trunk/cmake/modules/HandleLLVMOptions.cmake

Oscar Fuentes ofv at wanadoo.es
Sun Feb 6 11:07:06 PST 2011


Author: ofv
Date: Sun Feb  6 13:07:06 2011
New Revision: 124985

URL: http://llvm.org/viewvc/llvm-project?rev=124985&view=rev
Log:
Don't define NDEBUG on MSVC_IDE and XCode builds. Fixes PR9155.

Modified:
    llvm/trunk/cmake/modules/HandleLLVMOptions.cmake

Modified: llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/HandleLLVMOptions.cmake?rev=124985&r1=124984&r2=124985&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/HandleLLVMOptions.cmake (original)
+++ llvm/trunk/cmake/modules/HandleLLVMOptions.cmake Sun Feb  6 13:07:06 2011
@@ -33,7 +33,9 @@
   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()
 





More information about the llvm-commits mailing list