Bug 314072

Summary: Guard Apple-specific WTF headers
Product: WebKit Reporter: adrian_taylor
Component: Web Template FrameworkAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

adrian_taylor
Reported 2026-05-05 05:43:15 PDT
Swift/C++ interop requires a modulemap to be provided describing the layout of WTF headers. Ideally, we want to use the same modulemap for all WebKit platforms. Some of the headers listed in that modulemap are for Apple-only features. Until now, those headers were never interpreted on non-Apple platforms, but the modulemap causes Swift's embedded clang to try to build them. Solve that problem by adding platform header guards. An alternative is to add various directives in the modulemap but I understand header guards are considered best practice.
Attachments
Radar WebKit Bug Importer
Comment 1 2026-05-05 05:43:23 PDT
adrian_taylor
Comment 2 2026-05-05 05:46:00 PDT
EWS
Comment 3 2026-05-08 10:43:57 PDT
Committed 312898@main (4a7474b8b00a): <https://commits.webkit.org/312898@main> Reviewed commits have been landed. Closing PR #64259 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.