diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2020-04-17 08:39:47 +0200 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2020-04-17 23:10:09 +0200 |
commit | 8a5ffc4f73ef250610836393d0b71b2861a04929 (patch) | |
tree | b41f968a4373ff645daee1287ae06a55e8f969ce /util/cmake/configurejson2cmake.py | |
parent | 34124a4b0b967ec79b207eae5f3cabbd0690ef69 (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 'util/cmake/configurejson2cmake.py')
-rwxr-xr-x | util/cmake/configurejson2cmake.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/util/cmake/configurejson2cmake.py b/util/cmake/configurejson2cmake.py index a756d8d5e7..90bd3e2af6 100755 --- a/util/cmake/configurejson2cmake.py +++ b/util/cmake/configurejson2cmake.py @@ -852,7 +852,10 @@ def get_feature_mapping(): "condition": "NOT QT_FEATURE_icu AND QT_FEATURE_textcodec AND ( TEST_posix_iconv OR TEST_sun_iconv )" }, "incredibuild_xge": None, - "ltcg": None, + "ltcg": { + "autoDetect": "1", + "condition": "CMAKE_INTERPROCEDURAL_OPTIMIZATION" + }, "msvc_mp": None, "optimize_debug": None, "optimize_size": None, |