From 6e13f7a8f3c546eb94d44e50e9db75fe91242cd4 Mon Sep 17 00:00:00 2001 From: Jubilee Young Date: Sun, 26 May 2024 20:29:30 -0700 Subject: [PATCH] Test with lld-compatible args Rust on Linux has switched to using rust-lld by default, and it does not support the zlib-gnu or zlib-gabi arguments for --compress-debug-sections! Not surprising. It's... not GNU. Compensate for this by using zlib, which everyone supports. --- .github/workflows/main.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6ed2863c..55e2d126 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -80,11 +80,7 @@ jobs: - run: cargo test if: contains(matrix.os, 'ubuntu') env: - RUSTFLAGS: "-C link-arg=-Wl,--compress-debug-sections=zlib-gabi" - - run: cargo test - if: contains(matrix.os, 'ubuntu') - env: - RUSTFLAGS: "-C link-arg=-Wl,--compress-debug-sections=zlib-gnu" + RUSTFLAGS: "-C link-arg=-Wl,--compress-debug-sections=zlib" # Test that, on macOS, packed/unpacked debuginfo both work - run: cargo clean && cargo test