Function build::output::rustc_link_arg
source · [−]pub fn rustc_link_arg(flag: &str)
Expand description
The rustc-link-arg instruction tells Cargo to pass the
-C link-arg=FLAG
option
to the compiler, but only when building supported targets (benchmarks,
binaries, cdylib crates, examples, and tests). Its usage is highly platform
specific. It is useful to set the shared library version or linker script.