Hi,

macOS SDKs sometimes contain non-standard constructs, and require fixes through 
fixincludes. However, they are typically fixed in later SDK versions, although 
the process can be slow. Fixes have accumulated, which may be needed only for 
some older versions of the SDKs. They should be bypassed on modern macOS, and 
this patch does that for 4 cases. This makes the compiler less fragile when 
switching between SDKs.

Before the patch, 8 headers are fixincluded on x86_64-apple-darwin23:

AvailabilityInternal.h math.h                 os/base.h              stdint.h
dispatch/object.h      objc/runtime.h         os/trace.h             stdio.h

After the patch, only 4:

AvailabilityInternal.h math.h                 objc/runtime.h         stdio.h


Bootstrapped and regtested on x86_64-apple-darwin23.
OK to push?

FX


Attachment: 0001-fixincludes-bypass-some-fixes-for-recent-darwin-head.patch
Description: Binary data

Reply via email to