-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behavioros-macosmacOSmacOS
Milestone
Description
Zig Version
0.9.0-dev.1696+ff9a44a9f
Steps to Reproduce
I believe we need to regenerate the macOS libc headers to include changes from macOS 12.0 Monterey.
(1) libc headers for aarch64-macos-gnu report only macOS 11.1 being available (12.0 Monterey is the newest), which can cause issues when trying to compile some code. I believe I'm facing this in hexops/mach#84
(2) sys/cdefs.h currently does not define these as empty, which the latest header file from the macOS 12.0 SDK does:
#define __kernel_ptr_semantics
#define __kernel_data_semantics
#define __kernel_dual_semantics
This makes it impossible to supply macOS 12.0 frameworks and compile their headers, as e.g. definitions in IOKit/IOTypes.h become syntactically invalid:
typedef mach_vm_address_t IOVirtualAddress __kernel_ptr_semantics;
Expected Behavior
The headers reflect macOS 12
Actual Behavior
They do not reflect macOS 12
Metadata
Metadata
Assignees
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behavioros-macosmacOSmacOS