Skip to content

run-make: extract bootstrap cargo invocations to a proper Command #128734

Closed
@jieyouxu

Description

@jieyouxu

Current bootstrap cargo incantations are nothing short of magic and are indecipherable. We should try to refactor them to proper Command wrappers.

let bootstrap_cargo = env_var("BOOTSTRAP_CARGO");
let mut cmd = cmd(bootstrap_cargo);
cmd.args(&[
    "build",
    "--manifest-path",
    manifest_path.to_str().unwrap(),
    "-Zbuild-std=core",
    "--target",
    &target,
])
.env("PATH", path)
.env("RUSTC", rustc)
...

Metadata

Metadata

Assignees

Labels

A-run-makeArea: port run-make Makefiles to rmake.rsA-testsuiteArea: The testsuite used to check the correctness of rustcC-cleanupCategory: PRs that clean code up or issues documenting cleanup.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions