Linker: Restore support for WHOLE_ARCHIVE with Swift libraries

Add Swift linker information modules missed by commit c1c4cf9545 (Linker
configuration: introduce a new architecture, 2024-06-05,
v3.31.0-rc1~307^2~1) and needed since commit 1e35163ae8 (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:
Alexandra Cherdantseva 2025-02-03 08:47:36 +02:00 committed by Brad King
parent cc434d67ce
commit c894bc0831
12 changed files with 63 additions and 0 deletions

View 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)

View 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)

View 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)

View 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)

View 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)

View 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)

View 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)

View 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)

View 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)

View 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)

View 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)

View 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)