pub fn rustc_flags<I>(flags: impl Into<VarArg<I>>)Expand description
Passes certain flags to the compiler.
ยงThis only allows the -l and -L flags.
This function is is equivalent to using rustc_link_lib and rustc_link_search.
cargo_build::rustc_flags(["-L libs -L common_libs"]);
cargo_build::rustc_flags([
"-l ffi",
"-l ncursesw",
"-l stdc++",
"-l z"
]);See also rustc_link_search! macro and
rustc_link_lib! macro with compile-time checked
formatting, variable number of arguments and improved syntax.
https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-flags