From 3b8e03f299300f36f8e3405350cf4d4fc87e4318 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=96R=C3=96K=20Attila?= Date: Tue, 11 Jun 2024 17:46:38 +0200 Subject: [PATCH] ci: Set the `-znostart-stop-gc` flag for lld when testing --- .github/workflows/test_rust.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test_rust.yml b/.github/workflows/test_rust.yml index 70633e29643d..afed98ff60be 100644 --- a/.github/workflows/test_rust.yml +++ b/.github/workflows/test_rust.yml @@ -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