From: Sébastien Villemot Date: Mon, 22 Sep 2014 12:35:34 +0000 (+0100) Subject: Disable optimization and debugging flags for CSGCGALMeshGenerator3D.cpp X-Git-Tag: archive/raspbian/2019.2.0_git20200629.946dbd3-8+rpi1~1^2^2^2^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9cee4e92a8908685f1534986f9151a712b46975d;p=dolfin.git Disable optimization and debugging flags for CSGCGALMeshGenerator3D.cpp 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 --- diff --git a/dolfin/CMakeLists.txt b/dolfin/CMakeLists.txt index cf6e90e..e6a2f1e 100644 --- a/dolfin/CMakeLists.txt +++ b/dolfin/CMakeLists.txt @@ -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})