GitHub Actions: Use llvm-link for linking

This would improve linking times an all platforms. And since
we use a llvm/clang build we already have llvm-link for all
platforms.

Change-Id: I5b586a79482e7ae656939e8827677e902779e858
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Cristian Adam
2024-01-05 13:48:32 +01:00
parent 24649c4980
commit c28f5eb5c9

View File

@@ -604,6 +604,14 @@ jobs:
endif()
endif()
find_program(llvm_link_exe llvm-link PATHS "${{ steps.libclang.outputs.libclang_dir }}/bin")
set(WITH_LLVM_LINK --add-config=-DCMAKE_LINKER=${llvm_link_exe})
# Not for MSVC
if ("${{ runner.os }}" STREQUAL "Windows" AND NOT "x${{ matrix.config.environment_script }}" STREQUAL "x")
unset(WITH_LLVM_LINK)
endif()
execute_process(
COMMAND python
-u
@@ -618,6 +626,7 @@ jobs:
${CDB_OPTION}
${ELFUTILS_OPTION}
${NO_DMG}
${WITH_LLVM_LINK}
--add-config=-DCMAKE_C_COMPILER_LAUNCHER=ccache
--add-config=-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
--add-config=-DIDE_REVISION_URL=https://github.com/$ENV{GITHUB_REPOSITORY}/commits/$ENV{GITHUB_SHA}