Encoded CARGO_TARGET_<triple>_RUSTFLAGS
just like CARGO_ENCODED_RUSTFLAGS
?
#14398
Labels
A-rustflags
Area: rustflags
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
S-propose-close
Status: A team member has nominated this for closing, pending further input from the team
Problem
According to https://doc.rust-lang.org/cargo/reference/environment-variables.html there's
CARGO_ENCODED_RUSTFLAGS
to properly escape independent arguments with separators, when those arguments themselves (i.e. file paths) already contain spaces. However, no similar environment argument appears to exist forCARGO_TARGET_<triple>_RUSTFLAGS
so that I cannot set up per-targetRUSTFLAGS
containing arguments with spaces.Proposed Solution
Would it be possible to add
CARGO_TARGET_<triple>_ENCODED_RUSTFLAGS
?Notes
No response
The text was updated successfully, but these errors were encountered: