Skip to content

Commit

Permalink
Test with lld-compatible args (#627)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
workingjubilee authored May 27, 2024
1 parent 6156427 commit 13963ae
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 13963ae

Please sign in to comment.