Skip to content

compiletest: be more robust for cross-compile scenarios with dual under-test toolchains #160917

Description

@jieyouxu

compiletest isn't super robust about distinguishing between configuration and environment for the host versus the target-under-test (for cross-compile scenarios). At places, we sometimes don't bother distinguishing the two for "good enough" cases and when host-only testing is the case where we can make things work.

Furthermore, we do not distinguish between the case where you may actually have two "target" toolchains for the purpose of testing wasm proc macros: there is a under-test target toolchain for wasm proc-macros and there's a under-test target toolchain for $other_things

graph TD
    A["host_target(x86_64-unknown-linux-gnu)"] --> B["target_a(wasm32-wasip2)"]
    A --> C["target_b(i686-unknown-linux-gnu)"]
Loading

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-compiletestArea: The compiletest test runnerC-bugCategory: This is a bug.E-hardCall for participation: Hard difficulty. Experience needed to fix: A lot.E-needs-designThis issue needs exploration and design to see how and if we can fix/implement itT-bootstrapRelevant 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.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions