restrict inlining on one c++ source file on clang arches, it was taking many hours.

down to ~1 minute with restriction. hint from kurt@ ok espie@
This commit is contained in:
sthen 2019-07-12 21:36:21 +00:00
parent 07b41d6e89
commit f6a53d48f3
2 changed files with 17 additions and 1 deletions

View File

@ -1,8 +1,9 @@
# $OpenBSD: Makefile,v 1.108 2019/07/12 20:46:55 sthen Exp $
# $OpenBSD: Makefile,v 1.109 2019/07/12 21:36:21 sthen Exp $
COMMENT = desktop geographical information system
DISTNAME = qgis-3.8.0
REVISION = 0
EXTRACT_SUFX = .tar.bz2
CATEGORIES = geo x11

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-src_core_CMakeLists_txt,v 1.20 2019/07/12 21:36:21 sthen Exp $
takes many hours 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)