Skip to content

Commit 3a01dc5

Browse files
torokati44Dinnerbone
authored andcommitted
ci: Set the -znostart-stop-gc flag for lld when testing
1 parent 0d25b5d commit 3a01dc5

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/test_rust.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,12 @@ jobs:
6262
sudo apt install -y libasound2-dev libxcb-shape0-dev libxcb-xfixes0-dev libgtk-3-dev mesa-vulkan-drivers libpango1.0-dev libudev-dev
6363
6464
# Needed after: https://github.com/rust-lang/rust/pull/124129
65-
# Based on: https://github.com/dtolnay/linkme/pull/88
66-
- name: Disable rust-lld
67-
if: matrix.rust_version == 'nightly'
68-
run: echo RUSTFLAGS=${RUSTFLAGS}\ -Zlinker-features=-lld >> $GITHUB_ENV
65+
# See also: https://github.com/dtolnay/linkme/issues/94
66+
# Additionally: https://lld.llvm.org/ELF/start-stop-gc
67+
- name: Disable linker start-stop-gc
68+
# Note: We also use `rust-lld` on Windows, see `config.toml`.
69+
if: runner.os != 'macOS'
70+
run: echo RUSTFLAGS=${RUSTFLAGS}\ -Clink-args=-znostart-stop-gc >> $GITHUB_ENV
6971

7072
- name: Cache Cargo output
7173
uses: Swatinem/rust-cache@v2

0 commit comments

Comments
 (0)