Skip to content

Commit

Permalink
Fix nightly build
Browse files Browse the repository at this point in the history
In recent versions of the nightly / beta compilers, the use of linkme
causes linker errors. (dtolnay/linkme#94) This
is due to the new linker set as default in these versions.

Add linker flags to nightly builds to revert to the old linker
behaviour.

See:

- dtolnay/linkme#88
- https://blog.rust-lang.org/2024/05/17/enabling-rust-lld-on-linux.html

Signed-off-by: Niklas Dewally <[email protected]>
  • Loading branch information
niklasdewally committed Jun 19, 2024
1 parent 1cc0853 commit 05d8bd0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[target.x86_64-unknown-linux-gnu]

rustflags=["-Clink-arg=-Wl,-z,nostart-stop-gc"]
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
- solvers/**
- crates/**
- Cargo.*
- .cargo/*
- .github/workflows/test.yml
- .github/workflows/code-coverage-deploy.yml
pull_request:
Expand Down

0 comments on commit 05d8bd0

Please sign in to comment.