-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Labels
A-cliArea: Command-line interface, option parsing, etc.Area: Command-line interface, option parsing, etc.A-rustflagsArea: rustflagsArea: rustflagsC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Description
I am trying to pass pre-link-arg
s and link-arg
s to Rustc using Cargo. These dynamic an hence cannot be in the Cargo.toml
. Since they contain spaces, I cannot use CARGO_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.
Metadata
Metadata
Assignees
Labels
A-cliArea: Command-line interface, option parsing, etc.Area: Command-line interface, option parsing, etc.A-rustflagsArea: rustflagsArea: rustflagsC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`