Hi FX, > On 7 Jun 2024, at 09:57, FX Coudert <fxcoud...@gmail.com> wrote: >
> 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? OK for trunk, thanks for doing this, maybe we should consider it for branches after some bake time. Iain > > FX > > > <0001-fixincludes-bypass-some-fixes-for-recent-darwin-head.patch>