nop315.bsky.social
@nop315.bsky.social
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`
August 15, 2025 at 1:24 AM
(re `rust-lld` wrapping; see here: github.com/oxalica/rust...)
August 15, 2025 at 12:48 AM
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)
GitHub - oxalica/rust-overlay: Pure and reproducible nix overlay of binary distributed rust toolchains
Pure and reproducible nix overlay of binary distributed rust toolchains - oxalica/rust-overlay
github.com
August 15, 2025 at 12:47 AM
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
August 15, 2025 at 12:47 AM
sounds like something is using the bundled unwrapped `rust-lld` (though not sure why this might be... are you using `rustup` on NixOS?)
August 15, 2025 at 12:47 AM