summaryrefslogtreecommitdiffstats
path: root/qt_cmdline.cmake
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2021-12-16 13:25:43 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-01-21 03:05:42 +0000
commit086dcd151f8cb492e20555700c840b5bed6f8c83 (patch)
treeae0b6abe8f0b9486d5ea1ae0645972fb28e0273d /qt_cmdline.cmake
parent3b83168eb878a68d89a60618717a6f9aff9d4b60 (diff)
CMake: Add support building Qt with the 'mold' linker
The mold linker is a new linker for Linux that provides faster link times compared to BFD ld, ld.gold and lld. It can be found at https://github.com/rui314/mold To build Qt with mold, ensure that the binary in your PATH and then configure Qt with with either cmake /path/to/qtbase -DINPUT_linker=mold or /path/to/qtbase/configure --linker mold The change was tested with gcc 9, clang 10, clang 12, mold 1.0.0. Only qtbase and qtdeclarative (and dependencies) were tested. Task-number: QTBUG-99270 Change-Id: I2e64a1f4257c37ff5b64a9326e548b9b46e07c80 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit 158287c726b9ee7031c6e832dc159d02473e34d7) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'qt_cmdline.cmake')
-rw-r--r--qt_cmdline.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt_cmdline.cmake b/qt_cmdline.cmake
index ce9889045c..737cd9710b 100644
--- a/qt_cmdline.cmake
+++ b/qt_cmdline.cmake
@@ -63,7 +63,7 @@ qt_commandline_option(gui TYPE boolean)
qt_commandline_option(headersclean TYPE boolean)
qt_commandline_option(incredibuild-xge TYPE boolean NAME incredibuild_xge)
qt_commandline_option(libudev TYPE boolean)
-qt_commandline_option(linker TYPE optionalString VALUES bfd gold lld)
+qt_commandline_option(linker TYPE optionalString VALUES bfd gold lld mold)
qt_commandline_option(ltcg TYPE boolean)
# special case begin
qt_commandline_option(make TYPE addString VALUES examples libs tests tools