Skip to content
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

ci: Set the -znostart-stop-gc flag for lld when testing #16682

Merged
merged 1 commit into from
Jun 12, 2024
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
10 changes: 6 additions & 4 deletions .github/workflows/test_rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,12 @@ jobs:
sudo apt install -y libasound2-dev libxcb-shape0-dev libxcb-xfixes0-dev libgtk-3-dev mesa-vulkan-drivers libpango1.0-dev libudev-dev

# Needed after: https://github.com/rust-lang/rust/pull/124129
# Based on: https://github.com/dtolnay/linkme/pull/88
- name: Disable rust-lld
if: matrix.rust_version == 'nightly'
run: echo RUSTFLAGS=${RUSTFLAGS}\ -Zlinker-features=-lld >> $GITHUB_ENV
# See also: https://github.com/dtolnay/linkme/issues/94
# Additionally: https://lld.llvm.org/ELF/start-stop-gc
- name: Disable linker start-stop-gc
# Note: We also use `rust-lld` on Windows, see `config.toml`.
if: runner.os != 'macOS'
run: echo RUSTFLAGS=${RUSTFLAGS}\ -Clink-args=-znostart-stop-gc >> $GITHUB_ENV

- name: Cache Cargo output
uses: Swatinem/rust-cache@v2
Expand Down
Loading