ci: Improve OS condition on step disabling start-stop-gc

The syntax used for modifying an environment variable did
nothing on Windows (PowerShell).
This commit is contained in:
Kamil Jarosz 2024-08-31 18:35:40 +02:00 committed by TÖRÖK Attila
parent a80a0ab525
commit a38ae27703
1 changed files with 1 additions and 2 deletions

View File

@ -64,8 +64,7 @@ jobs:
# 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'
if: runner.os == 'Linux'
run: echo RUSTFLAGS=${RUSTFLAGS}\ --cfg=web_sys_unstable_apis\ -Clink-args=-znostart-stop-gc >> $GITHUB_ENV
- name: Cache Cargo output