Add cmd option to pass Rustc arguments containing spaces #6184
Labels
A-cli
Area: Command-line interface, option parsing, etc.
A-rustflags
Area: rustflags
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
I am trying to pass
pre-link-arg
s andlink-arg
s to Rustc using Cargo. These dynamic an hence cannot be in theCargo.toml
. Since they contain spaces, I cannot useCARGO_RUSTC_FLAGS
. If cargo had an option as--rustc-arg=
, it would be possible to pass (multiple) arguments through to Rust, even if some would contain spaces. This could be useful for passing library paths, too.The text was updated successfully, but these errors were encountered: