-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
unable to build rust on tiers-3 platform #67624
Copy link
Copy link
Closed
Labels
T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.T-releaseRelevant to the release subteam, which will review and decide on the PR/issue.Relevant to the release subteam, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.T-releaseRelevant to the release subteam, which will review and decide on the PR/issue.Relevant to the release subteam, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
with the introduction of #65939, the
bootstrap.pymandatories the use of downloadedrustfmt. but all platforms doesn't have binary distribution, mainly tiers-3 platforms like OpenBSD.For rustc or cargo dependencies, it is possible to use
config.toml(withrustcandcargokey in[build]section) to point to alternate binaries. this way,bootstrap.pydoesn't download them and use local supplied binaries.For
rustfmtit is currently not possible: ifbootstrap.pyis able to deal with it,rustbuildwill complains thatrustfmtisn't a valid key:What would be the right way to use a local
rustfmtbinary in order to copte with #65939, and not force the use of downloaded binary ?Would adding a
rustfmtkey in[build]section ofconfig.tomlwould be accepted (I could provide a patch of it, if yes) ? or should another method used ?Cc @anp @Mark-Simulacrum