Skip to content

Commit a56c39c

Browse files
authored
Merge pull request #112 from dtolnay/lld
Restore use of lld in CI
2 parents ee2a7d4 + 0a961e5 commit a56c39c

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@ jobs:
2626
matrix:
2727
rust: [nightly, beta, stable, 1.82.0, 1.70.0]
2828
os: [ubuntu]
29+
linker: ['']
2930
include:
31+
- name: Gold linker
32+
os: ubuntu
33+
rust: nightly
34+
linker: gold
3035
- name: macOS
3136
os: macos
3237
rust: nightly
@@ -50,9 +55,9 @@ jobs:
5055
run: echo RUSTFLAGS=${RUSTFLAGS}\ -Zrandomize-layout >> $GITHUB_ENV
5156
if: matrix.rust == 'nightly'
5257
shell: bash
53-
- name: Disable rust-lld
54-
run: echo RUSTFLAGS=${RUSTFLAGS}\ -Zlinker-features=-lld >> $GITHUB_ENV
55-
if: matrix.rust == 'nightly'
58+
- name: Select non-default linker
59+
run: echo RUSTFLAGS=${RUSTFLAGS}\ -Zlinker-features=-lld -Clink-arg=-fuse-ld=${{matrix.linker}} >> $GITHUB_ENV
60+
if: matrix.linker
5661
shell: bash
5762
- name: Ignore Windows linker warning
5863
run: echo RUSTFLAGS=${RUSTFLAGS}\ -Alinker_messages >> $GITHUB_ENV

0 commit comments

Comments
 (0)