Linker: Restore support for WHOLE_ARCHIVE with Swift libraries
Add Swift linker information modules missed by commitc1c4cf9545
(Linker configuration: introduce a new architecture, 2024-06-05, v3.31.0-rc1~307^2~1) and needed since commit1e35163ae8
(WHOLE_ARCHIVE link feature: rely now on linker configuration, 2024-07-01, v3.31.0-rc1~307^2). Fixes: #26657
This commit is contained in:
parent
cc434d67ce
commit
c894bc0831
6
Modules/Platform/Linker/Apple-AppleClang-Swift.cmake
Normal file
6
Modules/Platform/Linker/Apple-AppleClang-Swift.cmake
Normal file
@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Platform/Linker/Apple-AppleClang)
|
||||
|
||||
__apple_linker_appleclang(Swift)
|
5
Modules/Platform/Linker/Apple-Swift.cmake
Normal file
5
Modules/Platform/Linker/Apple-Swift.cmake
Normal file
@ -0,0 +1,5 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
# AppleClang is the default linker
|
||||
include(Platform/Linker/Apple-AppleClang-Swift)
|
6
Modules/Platform/Linker/Linux-GNU-Swift.cmake
Normal file
6
Modules/Platform/Linker/Linux-GNU-Swift.cmake
Normal file
@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Platform/Linker/Linux-GNU)
|
||||
|
||||
__linux_linker_gnu(Swift)
|
6
Modules/Platform/Linker/Linux-GNUgold-Swift.cmake
Normal file
6
Modules/Platform/Linker/Linux-GNUgold-Swift.cmake
Normal file
@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Platform/Linker/Linux-GNU-Swift)
|
||||
|
||||
set(CMAKE_Swift_PLATFORM_LINKER_ID GNUgold)
|
6
Modules/Platform/Linker/Linux-LLD-Swift.cmake
Normal file
6
Modules/Platform/Linker/Linux-LLD-Swift.cmake
Normal file
@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Platform/Linker/Linux-LLD)
|
||||
|
||||
__linux_linker_lld(Swift)
|
5
Modules/Platform/Linker/Linux-Swift.cmake
Normal file
5
Modules/Platform/Linker/Linux-Swift.cmake
Normal file
@ -0,0 +1,5 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
# GNU is the default linker
|
||||
include(Platform/Linker/Linux-GNU-CXX)
|
6
Modules/Platform/Linker/Windows-MSVC-Swift.cmake
Normal file
6
Modules/Platform/Linker/Windows-MSVC-Swift.cmake
Normal file
@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Platform/Linker/Windows-MSVC)
|
||||
|
||||
__windows_linker_msvc(Swift)
|
5
Modules/Platform/Linker/Windows-Swift.cmake
Normal file
5
Modules/Platform/Linker/Windows-Swift.cmake
Normal file
@ -0,0 +1,5 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
# MSVC is the default linker
|
||||
include(Platform/Linker/Windows-MSVC-Swift)
|
4
Modules/Platform/Linker/WindowsPhone-MSVC-Swift.cmake
Normal file
4
Modules/Platform/Linker/WindowsPhone-MSVC-Swift.cmake
Normal file
@ -0,0 +1,4 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Platform/Linker/Windows-MSVC-Swift)
|
5
Modules/Platform/Linker/WindowsPhone-Swift.cmake
Normal file
5
Modules/Platform/Linker/WindowsPhone-Swift.cmake
Normal file
@ -0,0 +1,5 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
# MSVC is the default linker
|
||||
include(Platform/Linker/WindowsPhone-MSVC-Swift)
|
4
Modules/Platform/Linker/WindowsStore-MSVC-Swift.cmake
Normal file
4
Modules/Platform/Linker/WindowsStore-MSVC-Swift.cmake
Normal file
@ -0,0 +1,4 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Platform/Linker/Windows-MSVC-Swift)
|
5
Modules/Platform/Linker/WindowsStore-Swift.cmake
Normal file
5
Modules/Platform/Linker/WindowsStore-Swift.cmake
Normal file
@ -0,0 +1,5 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
# MSVC is the default linker
|
||||
include(Platform/Linker/WindowsStore-MSVC-Swift)
|
Loading…
Reference in New Issue
Block a user