diff options
author | Evan Wilde <etceterawilde@gmail.com> | 2024-03-22 16:24:02 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-04-02 14:42:12 (GMT) |
commit | 3fb4092826319730d529563820eefdaa3449a276 (patch) | |
tree | 55bf5b2febad4bafcc580b839fcd305ca5171583 /Tests/RunCMake/LinkerSelection/RunCMakeTest.cmake | |
parent | 659bc156eff0a90c2ea3fdb3d866e07f8c0e436b (diff) | |
download | CMake-3fb4092826319730d529563820eefdaa3449a276.zip CMake-3fb4092826319730d529563820eefdaa3449a276.tar.gz CMake-3fb4092826319730d529563820eefdaa3449a276.tar.bz2 |
Swift: Add CMAKE_LINKER_TYPE support
Extend commit 96a953b1ed (Add options to specify linker tool, 2023-09-27,
v3.29.0-rc1~577^2) with the `CMAKE_Swift_USING_LINKER_*` variables
needed to support `CMAKE_LINKER_TYPE` for Swift.
Diffstat (limited to 'Tests/RunCMake/LinkerSelection/RunCMakeTest.cmake')
-rw-r--r-- | Tests/RunCMake/LinkerSelection/RunCMakeTest.cmake | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Tests/RunCMake/LinkerSelection/RunCMakeTest.cmake b/Tests/RunCMake/LinkerSelection/RunCMakeTest.cmake index 8929a0d..0a3f01c 100644 --- a/Tests/RunCMake/LinkerSelection/RunCMakeTest.cmake +++ b/Tests/RunCMake/LinkerSelection/RunCMakeTest.cmake @@ -17,12 +17,11 @@ endif() find_program(LLD_LINKER NAMES ${LINKER_NAMES}) macro(run_cmake_and_build test) - run_cmake_with_options(${test} -DCMake_TEST_CUDA=${CMake_TEST_CUDA}) + run_cmake_with_options(${test} + -DCMake_TEST_CUDA=${CMake_TEST_CUDA} + -DCMake_TEST_Swift=${CMake_TEST_Swift}) set(RunCMake_TEST_BINARY_DIR ${RunCMake_BINARY_DIR}/${test}-build) set(RunCMake_TEST_NO_CLEAN 1) - if(CMake_TEST_CUDA) - string(APPEND "|${CMAKE_CUDA_USING_LINKER_LLD}") - endif() run_cmake_command(${test}-build ${CMAKE_COMMAND} --build . --config Release --verbose ${ARGN}) unset(RunCMake_TEST_BINARY_DIR) @@ -34,6 +33,7 @@ if(LLD_LINKER) set(CMAKE_VERBOSE_MAKEFILE TRUE) set(CMAKE_C_USE_RESPONSE_FILE_FOR_LIBRARIES FALSE) set(CMAKE_CUDA_USE_RESPONSE_FILE_FOR_LIBRARIES FALSE) + set(CMAKE_Swift_USE_RESPONSE_FILE_FOR_LIBRARIES FALSE) run_cmake_and_build(ValidLinkerType) run_cmake_and_build(CustomLinkerType) |