From ae71fb70964b61999b0c633657f9ba91ccd64108 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Tue, 11 Mar 2025 21:00:24 -0700 Subject: [PATCH 1/3] Restore use of lld in CI --- .github/workflows/ci.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e5f7855..795d2c1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - rust: [nightly, beta, stable, 1.82.0, 1.70.0] + rust: [nightly, nightly-2025-03-08, nightly-2025-03-09, beta, stable, 1.82.0, 1.70.0] os: [ubuntu] include: - name: macOS @@ -50,10 +50,6 @@ jobs: run: echo RUSTFLAGS=${RUSTFLAGS}\ -Zrandomize-layout >> $GITHUB_ENV if: matrix.rust == 'nightly' shell: bash - - name: Disable rust-lld - run: echo RUSTFLAGS=${RUSTFLAGS}\ -Zlinker-features=-lld >> $GITHUB_ENV - if: matrix.rust == 'nightly' - shell: bash - name: Ignore Windows linker warning run: echo RUSTFLAGS=${RUSTFLAGS}\ -Alinker_messages >> $GITHUB_ENV if: matrix.rust == 'nightly-x86_64-pc-windows-gnu' From 4132aa3bd63d8edfccaa9d99afab088178536bf0 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Tue, 11 Mar 2025 21:06:07 -0700 Subject: [PATCH 2/3] Drop dated nightly jobs --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 795d2c1..9735d5e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - rust: [nightly, nightly-2025-03-08, nightly-2025-03-09, beta, stable, 1.82.0, 1.70.0] + rust: [nightly, beta, stable, 1.82.0, 1.70.0] os: [ubuntu] include: - name: macOS From 0a961e54387a5f8320068fb63ce605971087623b Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Tue, 11 Mar 2025 21:08:35 -0700 Subject: [PATCH 3/3] Add a CI job that uses ld.gold --- .github/workflows/ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9735d5e..8230f5d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,12 @@ jobs: matrix: rust: [nightly, beta, stable, 1.82.0, 1.70.0] os: [ubuntu] + linker: [''] include: + - name: Gold linker + os: ubuntu + rust: nightly + linker: gold - name: macOS os: macos rust: nightly @@ -50,6 +55,10 @@ jobs: run: echo RUSTFLAGS=${RUSTFLAGS}\ -Zrandomize-layout >> $GITHUB_ENV if: matrix.rust == 'nightly' shell: bash + - name: Select non-default linker + run: echo RUSTFLAGS=${RUSTFLAGS}\ -Zlinker-features=-lld -Clink-arg=-fuse-ld=${{matrix.linker}} >> $GITHUB_ENV + if: matrix.linker + shell: bash - name: Ignore Windows linker warning run: echo RUSTFLAGS=${RUSTFLAGS}\ -Alinker_messages >> $GITHUB_ENV if: matrix.rust == 'nightly-x86_64-pc-windows-gnu'