Add the ltcg flag to .pri files
QT_FEATURE_ltcg is TRUE if either of CMAKE_INTERPROCEDURAL_OPTIMIZATION=ON or CMAKE_INTERPROCEDURAL_OPTIMIZATION_<CONFIG>=ON are passed to the configure, or the cmake command. Change-Id: Ibaece67de6cc6f89e505038fd02fb50008c47d48 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit 9c90cd7fb969f8907a68ec330a3dbd27842a928a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
49c6a2e554
commit
3e3f508f6d
@ -323,7 +323,9 @@ function(qt_generate_module_pri_file target)
|
||||
list(APPEND module_internal_config staticlib)
|
||||
endif()
|
||||
|
||||
# TODO: Add the value 'ltcg' to module_internal_config if LTCG is turned on.
|
||||
if(QT_FEATURE_ltcg)
|
||||
list(APPEND module_internal_config ltcg)
|
||||
endif()
|
||||
|
||||
list(JOIN module_internal_config " " joined_module_internal_config)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user