Skip to content

Bootstrap: verify that --target and --host triples are valid before starting a build #122128

Closed
@tgross35

Description

@tgross35

I ran ./x dist --target mips64-openwrt-linux-musl --host x86_64-unknown-linux-gnu twice with slight different typos in the --host argument. Unfortunately, this takes about half an hour to detect (stage2, LLVM builds) and changing the host seems to invalidate some of the build.

Bootstrap can't actually query rustc for the target list, but it would be great if it could verify the triple string exists somewhere in compiler/rustc_target/src/spec/mod.rs as a sanity check before kicking off a multistage build.

@rustbot label +T-bootstrap +E-easy -needs-triage

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions