Skip to content

Enable most macos functions on all of apple_targets #2238

Closed
@asomers

Description

@asomers

A quick search through libc shows that there's only one function we use that's defined on macos but isn't defined on tvos, watchos, and ios as well: clock_settime. Even that, I suspect, is a mistake, given that clock_gettime is defined for all of them.
We should replace #[cfg(target_os = macos)] with #[cfg(apple_targets)] everywhere.
Honestly, I don't know why Apple needs so many different Rust targets.

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