Skip to content

Commit bef87c1

Browse files
committed
Fix nightly build
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 <niklas@dewally.com>
1 parent 1cc0853 commit bef87c1

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.cargo/config.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build]
2+
3+
rustflags=["-Clink-arg=-Wl,-z,nostart-stop-gc"]

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
- solvers/**
1010
- crates/**
1111
- Cargo.*
12+
- .cargo/*
1213
- .github/workflows/test.yml
1314
- .github/workflows/code-coverage-deploy.yml
1415
pull_request:

0 commit comments

Comments
 (0)