changeset 139:825ac6364d2f

CMake: fix debug flags for ldc
author SokoL_SD
date Sun, 07 Jun 2009 17:43:05 +0000
parents cbdfc92eac7f
children 6cbe4f5f8fb7
files cmake/FindD.cmake
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/cmake/FindD.cmake	Sun Jun 07 15:31:10 2009 +0000
+++ b/cmake/FindD.cmake	Sun Jun 07 17:43:05 2009 +0000
@@ -72,15 +72,18 @@
 ## Specifics flags for build configurations.
 ## TODO: Add another targets.
 set(D_RELEASE_FLAGS -O -release)
+set(D_DEBUG_FLAGS -g )
 if(D_IS_LLVM)
     set(D_RELEASE_FLAGS ${D_RELEASE_FLAGS} -enable-inlining)
+    set(D_DEBUG_FLAGS ${D_DEBUG_FLAGS} -d-debug)
 else(D_IS_LLVM)
     set(D_RELEASE_FLAGS ${D_RELEASE_FLAGS} -inline)
+    set(D_DEBUG_FLAGS ${D_DEBUG_FLAGS} -debug)
 endif(D_IS_LLVM)
 if(CMAKE_HOST_WIN32)
     set(D_RELEASE_FLAGS ${D_RELEASE_FLAGS} -L/subsystem:windows)
 endif(CMAKE_HOST_WIN32)   
-set(D_DEBUG_FLAGS -g -gc -debug)
+
 
 ## Settings.
 if(CMAKE_HOST_WIN32)