summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rw-r--r--cmake/QtInternalTargets.cmake8
-rw-r--r--cmake/configure-cmake-mapping.md3
2 files changed, 10 insertions, 1 deletions
diff --git a/cmake/QtInternalTargets.cmake b/cmake/QtInternalTargets.cmake
index bd3d034f60..e59e075d32 100644
--- a/cmake/QtInternalTargets.cmake
+++ b/cmake/QtInternalTargets.cmake
@@ -213,6 +213,14 @@ if(DEFINED QT_EXTRA_FRAMEWORKPATHS AND APPLE)
unset(__qt_fw_flags)
endif()
+if(QT_FEATURE_use_gold_linker)
+ target_link_options(PlatformCommonInternal INTERFACE "-fuse-ld=gold")
+elseif(QT_FEATURE_use_bfd_linker)
+ target_link_options(PlatformCommonInternal INTERFACE "-fuse-ld=bfd")
+elseif(QT_FEATURE_use_lld_linker)
+ target_link_options(PlatformCommonInternal INTERFACE "-fuse-ld=lld")
+endif()
+
function(qt_get_implicit_sse2_genex_condition out_var)
set(is_shared_lib "$<STREQUAL:$<TARGET_PROPERTY:TYPE>,SHARED_LIBRARY>")
set(is_static_lib "$<STREQUAL:$<TARGET_PROPERTY:TYPE>,STATIC_LIBRARY>")
diff --git a/cmake/configure-cmake-mapping.md b/cmake/configure-cmake-mapping.md
index e0edfe98e7..cafe139ce8 100644
--- a/cmake/configure-cmake-mapping.md
+++ b/cmake/configure-cmake-mapping.md
@@ -66,7 +66,8 @@ The effort of this is tracked in QTBUG-85373 and QTBUG-85349.
| -static-runtime | -DFEATURE_static_runtime=ON | |
| -pch | -DBUILD_WITH_PCH=ON | |
| -ltcg | | |
-| -linker [bfd,gold,lld] | | |
+| -linker [bfd,gold,lld] | -DINPUT_linker=<name> or | |
+| | -DFEATURE_use_<name>_linker=ON | |
| -incredibuild-xge | | |
| -ccache | -DQT_USE_CCACHE=ON | |
| -make-tool <tool> | n/a | |