ah, i see! hmm...
i'm not familiar with `compiletest`; is there a way to pass it rustc flags out-of-band (via an env var or something)?
if so, maybe it would it be appropriate to have the dev shell instruct it (`compiletest`) to pass `-Clink-self-contained=-linker`
Posts by
8 months ago
1
0
0
0
(re `rust-lld` wrapping; see here: github.com/oxalica/rust...)
8 months ago
0
0
0
0
alternatively if you get your rust toolchain from oxalica's rust-overlay flake it will wrap `rust-lld` appropriately for you: github.com/oxalica/rust... (this is the better fix imo)
8 months ago
1
0
1
0
getting `rustc` not to use the built in `lld` (`-Zlinker-features=-lld`) or telling it explicitly to use the wrapped linker from nixpkgs (`-Clink-arg=-fuse-ld=...`, `-Clinker=...`) is one way to fix it
8 months ago
0
0
1
0
sounds like something is using the bundled unwrapped `rust-lld` (though not sure why this might be... are you using `rustup` on NixOS?)
8 months ago
0
0
2
0