summaryrefslogtreecommitdiffstats
path: root/configure.cmake
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2020-04-17 08:39:47 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2020-04-17 23:10:09 +0200
commit8a5ffc4f73ef250610836393d0b71b2861a04929 (patch)
treeb41f968a4373ff645daee1287ae06a55e8f969ce /configure.cmake
parent34124a4b0b967ec79b207eae5f3cabbd0690ef69 (diff)
CMake: Port the 'ltcg' feature
This maps to the CMake variable CMAKE_INTERPROCEDURAL_OPTIMIZATION. Change-Id: Id0ce48f176b95c27e74ab80276e89503b1660f79 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'configure.cmake')
-rw-r--r--configure.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.cmake b/configure.cmake
index 5534f6aafc..f67dd96b6e 100644
--- a/configure.cmake
+++ b/configure.cmake
@@ -509,6 +509,12 @@ qt_feature("precompile_header"
CONDITION BUILD_WITH_PCH
)
qt_feature_config("precompile_header" QMAKE_PRIVATE_CONFIG)
+qt_feature("ltcg"
+ LABEL "Using LTCG"
+ AUTODETECT 1
+ CONDITION CMAKE_INTERPROCEDURAL_OPTIMIZATION
+)
+qt_feature_config("ltcg" QMAKE_PRIVATE_CONFIG)
qt_feature("reduce_exports" PRIVATE
LABEL "Reduce amount of exported symbols"
CONDITION NOT WIN32 AND CMAKE_CXX_COMPILE_OPTIONS_VISIBILITY