WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
314072
Guard Apple-specific WTF headers
https://bugs.webkit.org/show_bug.cgi?id=314072
Summary
Guard Apple-specific WTF headers
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
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2026-05-05 05:43:23 PDT
<
rdar://problem/176259431
>
adrian_taylor
Comment 2
2026-05-05 05:46:00 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/64259
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.
Top of Page
Format For Printing
XML
Clone This Bug