-
Couldn't load subscription status.
- Fork 2.7k
Description
Problem
Primarily related to https://doc.rust-lang.org/cargo/reference/config.html.
I believe it would be helpful if that page included:
- A brief discussion of what a platform 'triple' is, or a link to a document with such a description;
- Some instructions on how one can figure out the 'triple' for their host machine, or other potential targets.
Proposed Solution
Perhaps a small section could be added immediately after https://doc.rust-lang.org/cargo/reference/config.html#configuration-format. Here's a short draft:
Platform Triples
Platform-specific compiler and linker flags can be specified as part of [target.<triple>] configuration entries in config.toml. Here, <triple> refers to a Target Triplet. It has the form <machine>-<vendor>-<os>, and you can use:
rustc -vV
to infer your machine's platform triple, which is printed as part of the host: field.
Notes
I'm making this as an issue first just to confirm whether this feels like a worthwhile change; if so, I can make a PR.