Skip to content

Cannot write tests that need the csky backend #125697

Closed
@RalfJung

Description

@RalfJung

In tests/ui/abi/compatibility.rs we're trying to test the ABI adjustment logic of all targets. This generally works as the test is no_core and LLVM has backends for all targets available -- except it does not seem possible to test the csky target that way. Trying to add the usual needs-llvm-components: csky leads to an error from tidy:

/checkout/tests/ui/abi/compatibility.rs: revision csky specifies unknown LLVM component `csky`

The test passes just fine locally, so it seems like at least the downloaded LLVM has the csky component. I don't know why it was not added to tidy's KNOWN_LLVM_COMPONENTS list.

Cc @Dirreke

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-testsuiteArea: The testsuite used to check the correctness of rustcC-bugCategory: This is a bug.O-cskyTarget: glaCSKY above covers over me~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