Skip to content

[🍒 swift 6.0.x] Default Linux toolchain linker to gold #77381

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion utils/build-presets.ini
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,7 @@ reconfigure
# gcc version on amazon linux 2 is too old to configure and build tablegen.
# Use the clang that we install in the path for macros
llvm-cmake-options=
-DCROSS_TOOLCHAIN_FLAGS_LLVM_NATIVE='-DCMAKE_C_COMPILER=clang;-DCMAKE_CXX_COMPILER=clang++'
-DCROSS_TOOLCHAIN_FLAGS_LLVM_NATIVE='-DCMAKE_C_COMPILER=clang;-DCMAKE_CXX_COMPILER=clang++;-DCLANG_DEFAULT_LINKER=gold'
-DCLANG_DEFAULT_LINKER=gold

[preset: buildbot_linux]
Expand Down Expand Up @@ -1088,6 +1088,11 @@ reconfigure
test-optimized
skip-test-swiftdocc

# gcc version on amazon linux 2 is too old to configure and build tablegen.
# Use the clang that we install in the path for macros
llvm-cmake-options=
-DCROSS_TOOLCHAIN_FLAGS_LLVM_NATIVE='-DCMAKE_C_COMPILER=clang;-DCMAKE_CXX_COMPILER=clang++'
-DCLANG_DEFAULT_LINKER=gold

[preset: buildbot_linux_1404_no_lldb]
mixin-preset=buildbot_incremental_linux
Expand Down Expand Up @@ -1167,6 +1172,8 @@ reconfigure
# in Linux CI bots
relocate-xdg-cache-home-under-build-subdir

llvm-cmake-options=
-DCLANG_DEFAULT_LINKER=gold

[preset: buildbot_incremental_linux]
mixin-preset=
Expand Down Expand Up @@ -1831,6 +1838,9 @@ skip-test-foundation
skip-test-libdispatch
skip-test-xctest

llvm-cmake-options=
-DCLANG_DEFAULT_LINKER=gold

# Builds enough of the toolchain to build a swift package on macOS.
[preset: mixin_swiftpm_package_macos_platform]
mixin-preset=mixin_swiftpm_macos_platform
Expand All @@ -1853,6 +1863,8 @@ mixin-preset=mixin_swiftpm_linux_platform
skip-test-llbuild
skip-test-swiftpm

llvm-cmake-options=
-DCLANG_DEFAULT_LINKER=gold

#===------------------------------------------------------------------------===#
# Test swiftPM on macOS builder
Expand Down Expand Up @@ -2125,6 +2137,9 @@ skip-test-swift
skip-test-libdispatch
skip-test-foundation

llvm-cmake-options=
-DCLANG_DEFAULT_LINKER=gold

#===------------------------------------------------------------------------===#
# Remote Mirror Library
#===------------------------------------------------------------------------===#
Expand Down Expand Up @@ -2953,6 +2968,9 @@ install-libdispatch
install-xctest
swift-install-components=autolink-driver;compiler;clang-builtin-headers;stdlib;libexec;swift-remote-mirror;sdk-overlay;license

llvm-cmake-options=
-DCLANG_DEFAULT_LINKER=gold

[preset: source_compat_suite_macos_DA]
mixin-preset=source_compat_suite_macos_base
debug
Expand Down Expand Up @@ -3042,3 +3060,6 @@ skip-test-cmark
skip-test-swift
skip-build-benchmarks
skip-test-foundation

llvm-cmake-options=
-DCLANG_DEFAULT_LINKER=gold