Disable optimization and debugging flags for CSGCGALMeshGenerator3D.cpp
authorSébastien Villemot <sebastien@debian.org>
Mon, 22 Sep 2014 12:35:34 +0000 (13:35 +0100)
committerJohannes Ring <johannr@simula.no>
Mon, 22 Sep 2014 12:35:34 +0000 (13:35 +0100)
Forwarded: not-needed
Last-Update: 2012-12-14

This is a workaround for a g++ 4.8.2 issue which eats all the RAM of the buildds.
See https://buildd.debian.org/status/fetch.php?pkg=dolfin&arch=armhf&ver=1.2.0%2Bdfsg-3%2Bb1&stamp=1386829168 for example.
Last-Update: 2012-12-14
Gbp-Pq: Name CSGCGALMeshGenerator3D-oom.patch

dolfin/CMakeLists.txt

index cf6e90e712f3ea363622370f8aa18e46afb59d4b..e6a2f1e003b2a0e5a4739911170839694a1335ad 100644 (file)
@@ -286,6 +286,8 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${DOLFIN_CXX_FLAGS}")
 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${DOLFIN_LINK_FLAGS}")
 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${DOLFIN_LINK_FLAGS}")
 
+set_source_files_properties(generation/CSGCGALMeshGenerator3D.cpp PROPERTIES COMPILE_FLAGS "-O0 -g0")
+
 # Define libraries
 add_library(dolfin ${DOLFIN_H} ${HEADERS} ${SOURCES})
 set_target_properties(dolfin PROPERTIES ${DOLFIN_LIBRARY_PROPERTIES})