Skip to content

The target information for mips64-openwrt-linux-musl seems wrong #131165

Closed
@madsmtm

Description

@madsmtm

Target triples are generally arch-vendor-os-env (with lots of exceptions), but the mips64-openwrt-linux-musl target (added in #92300) seems to be confused about the vendor?

The target cfgs are currently (trimmed from rustc --print cfg --target mips64-openwrt-linux-musl):

target_arch="mips64"
target_vendor="unknown"
target_os="linux"
target_env="musl"

I think there's a few ways to fix this:

  • Declare OpenWRT as the vendor (which is also the position in the triple that it's currently located), and set target_vendor="openwrt".
  • Rename the target to mips64-unknown-openwrt-musl or similar, and set target_os="openwrt".
    • A rename could be beneficial anyhow, since it actual uses target_abi = "abi64", and so the target name should contain muslabi64.

CC target maintainer @Itus-Shield

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.O-MIPSTarget: MIPS processorsT-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