I am wondering what is the best way to pass a linker arg when compiling a cargo build script itself?
Some background: I’m on a rather nonstandard Linux system (in fact, a Cray SUSE distro), and compiling Rust binaries is a bit tricky. With some help from the IRC, I’ve managed to compile regular binaries by calling
cargo rustc with
-C link-args="...". However I am unfortunately unaware of a way to pass a similar argument to cargo for compiling the build script itself, short of modifying the cargo source directly.