summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2021-09-23 13:44:26 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2021-09-24 14:43:22 +0200
commitd18470913088cd7e36aca0639830be95ce1d11d8 (patch)
tree7ec523b58dbcdedaf7dfa4eeae1cfbbe468d6381
parent48ec455571260a3ed8dd07879e0d220e6d5b533e (diff)
Fix use_lld_linker on Windows
We need to set the cmake base path, when not controlling the toolchain like on Linux. Pick-to: 6.2 Change-Id: I0e2f1ea76d9c52bb9bf867daa8fa2feceff3707e Reviewed-by: Michal Klocek <michal.klocek@qt.io>
-rw-r--r--cmake/Functions.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/cmake/Functions.cmake b/cmake/Functions.cmake
index 8bd8b20f4..05f83ddf1 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)