This single file takes many hours to compile with default compiler flags,
restricting inlining to less complex functions (as suggested by kurt@,
thanks) takes it down to an acceptable speed (~1 minute on i386).

Doing a (hopefully :) final build test now - ok if that works?

Index: Makefile
===================================================================
RCS file: /cvs/ports/geo/qgis/Makefile,v
retrieving revision 1.107
diff -u -p -r1.107 Makefile
--- Makefile    3 Jul 2019 09:45:05 -0000       1.107
+++ Makefile    12 Jul 2019 14:23:00 -0000
@@ -3,6 +3,7 @@
 COMMENT =      desktop geographical information system
 
 DISTNAME =     qgis-3.8.0
+REVISION =     0
 EXTRACT_SUFX = .tar.bz2
 CATEGORIES =   geo x11
 
Index: patches/patch-src_core_CMakeLists_txt
===================================================================
RCS file: patches/patch-src_core_CMakeLists_txt
diff -N patches/patch-src_core_CMakeLists_txt
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_core_CMakeLists_txt       12 Jul 2019 14:23:00 -0000
@@ -0,0 +1,15 @@
+$OpenBSD$
+
+takes many hours to build with the default (225)
+
+Index: src/core/CMakeLists.txt
+--- src/core/CMakeLists.txt.orig
++++ src/core/CMakeLists.txt
+@@ -820,6 +820,7 @@ ELSE(MSVC)
+   SET_SOURCE_FILES_PROPERTIES(${QGIS_CORE_MOC_SRCS} PROPERTIES COMPILE_FLAGS 
"-Wno-deprecated-declarations" )
+   IF ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang" AND (CMAKE_BUILD_TYPE 
MATCHES Release OR CMAKE_BUILD_TYPE MATCHES RelWithDebInfo))
+     
SET_SOURCE_FILES_PROPERTIES(${CMAKE_CURRENT_BINARY_DIR}/qgsexpression_texts.cpp 
PROPERTIES COMPILE_FLAGS "-O1")
++    SET_SOURCE_FILES_PROPERTIES(qgscoordinatereferencesystem.cpp PROPERTIES 
COMPILE_FLAGS "-mllvm -inline-threshold=128")
+   ENDIF ()
+ ENDIF(MSVC)
+ 

Reply via email to