summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2021-09-23 13:44:26 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-09-24 19:39:38 +0000
commitd63c2b80249cbd6cd5154004c85e9faa90c0b962 (patch)
tree71af22a7ce44eee51589fe825f210b57330dd694 /cmake
parent7f61ce6f8ac4172d4e641490532cb6e244d41ae8 (diff)
Fix use_lld_linker on Windows
We need to set the cmake base path, when not controlling the toolchain like on Linux. Change-Id: I0e2f1ea76d9c52bb9bf867daa8fa2feceff3707e Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit d18470913088cd7e36aca0639830be95ce1d11d8) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Functions.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/cmake/Functions.cmake b/cmake/Functions.cmake
index 693ecf84e..a326924ef 100644
--- a/cmake/Functions.cmake
+++ b/cmake/Functions.cmake
@@ -757,6 +757,15 @@ macro(append_compiler_linker_sdk_setup)
mac_sdk_min="${macSdkVersion}"
)
endif()
+ else()
+ if(QT_FEATURE_use_lld_linker)
+ get_filename_component(clangBasePath ${CMAKE_LINKER} DIRECTORY)
+ get_filename_component(clangBasePath ${clangBasePath} DIRECTORY)
+ list(APPEND gnArgArg
+ clang_base_path="${clangBasePath}"
+ fatal_linker_warnings=false
+ )
+ endif()
endif()
if(WIN32)