Skip to content

Considering add a #[cfg] option for musl/glibc split #33244

Closed
@alexcrichton

Description

@alexcrichton

Right now target_env is predominately used to conditionally compile code for differing C libraries like msvc, glibc, musl, etc. On ARM, however, there are two glibc target_env annotations, "gnueabi" and "gneuabihf". This then also extends to musl with "musleabi" and "musleabihf". This seems unnecessarily complicated to say "conditionally compile this code when using musl", that is it should only require one annotation, not three.

We could possibly change target_env as I doubt anyone's using "gnueabihf" as a matcher, or we could add a new target_libc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions