]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Disable -g and -ggdb on MinGW targets for the moment.
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 25 Nov 2012 10:21:52 +0000 (10:21 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 25 Nov 2012 10:21:52 +0000 (10:21 +0000)
MinGW32 is not able to compile two files due to size constraints (wth?)

git-svn-id: https://svn.dealii.org/branches/branch_cmake@27679 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/setup_compiler_flags_gnu.cmake

index 70fa3595dd0889af7656fb78da4963c77b97026b..83b421d4352695ee7d26fbfa48301e3854d1fa85 100644 (file)
@@ -132,14 +132,22 @@ IF (CMAKE_BUILD_TYPE MATCHES "Debug")
 
   ADD_FLAGS(DEAL_II_CXX_FLAGS_DEBUG "-O0")
 
-  ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS_DEBUG "-ggdb")
-  ENABLE_IF_SUPPORTED(DEAL_II_SHARED_LINKER_FLAGS_DEBUG "-ggdb")
   #
-  # If -ggdb is not available, fall back to -g:
+  # Disable -ggdb and -g on Windows/MinGW targets for the moment until the
+  # compilation issues with too big files is resolved
   #
-  IF(NOT DEAL_II_HAVE_FLAG_ggdb)
-    ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS_DEBUG "-g")
-    ENABLE_IF_SUPPORTED(DEAL_II_SHARED_LINKER_FLAGS_DEBUG "-g")
+  # - Matthias Maier, 2012
+  #
+  IF(NOT CMAKE_SYSTEM_NAME MATCHES "Windows")
+    ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS_DEBUG "-ggdb")
+    ENABLE_IF_SUPPORTED(DEAL_II_SHARED_LINKER_FLAGS_DEBUG "-ggdb")
+    #
+    # If -ggdb is not available, fall back to -g:
+    #
+    IF(NOT DEAL_II_HAVE_FLAG_ggdb)
+      ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS_DEBUG "-g")
+      ENABLE_IF_SUPPORTED(DEAL_II_SHARED_LINKER_FLAGS_DEBUG "-g")
+    ENDIF()
   ENDIF()
 ENDIF()
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.