Skip to content

Instantly share code, notes, and snippets.

@thejpster
Created August 11, 2025 20:55
Show Gist options
  • Save thejpster/026e84c668e94d2ea7c9d89168d83d03 to your computer and use it in GitHub Desktop.
Save thejpster/026e84c668e94d2ea7c9d89168d83d03 to your computer and use it in GitHub Desktop.
~/rusttest $ cat .cargo/config.toml
[target.x86_64-unknown-linux-gnu]
linker = "gccfoo"
~/rusttest $ cat testbin/.cargo/config.toml
[target.x86_64-unknown-linux-gnu]
linker = "gccbar"
~/rusttest $ cd testbin
~/rusttest/testbin $ cargo run
Compiling testbin v0.1.0 (/home/jonathan/rusttest/testbin)
error: linker `gccbar` not found
|
= note: No such file or directory (os error 2)
error: could not compile `testbin` (bin "testbin") due to 1 previous error
~/rusttest/testbin $ cd ..
~/rusttest $ cargo run --manifest-path testbin/Cargo.toml
Compiling testbin v0.1.0 (/home/jonathan/rusttest/testbin)
error: linker `gccfoo` not found
|
= note: No such file or directory (os error 2)
error: could not compile `testbin` (bin "testbin") due to 1 previous error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment