Skip to content

build.rs: Questionable check target_os == "loongarch64" in musl_v1_2_3 check #4526

Open
@neuschaefer

Description

@neuschaefer

While browsing the libc crate source code, I noticed this part:

    // loongarch64 and ohos have already updated
    if musl_v1_2_3 || target_os == "loongarch64" || target_env == "ohos" {
        // FIXME(musl): enable time64 api as well
        set_cfg("musl_v1_2_3");
    }

This is suspicious because it should probably be target_arch, not target_os.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions