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
307323
Add clang-target argument
https://bugs.webkit.org/show_bug.cgi?id=307323
Summary
Add clang-target argument
adrian_taylor
Reported
2026-02-09 02:35:29 PST
In Swift/C++ interop, swiftc uses an embedded version of clang to interpret WebKit's headers. Some of those headers depend upon macros such as __MAC_OS_X_VERSION_MIN_REQUIRED, and these can be very impactful e.g. adding or removing data members from structures and thus changing offsets of later data members. Unfortunately clang modules attempt to be agnostic to MacOS versions, and thus these macros were not representing the actual target SDK version; therefore Swift and C++ ended up with different ideas about the offsets of data members. All of this is explored in
rdar://168992837
. For now, the workaround is to force Swift to give a specific SDK version number to clang, and this bug represents the task of doing that.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2026-02-09 02:35:36 PST
<
rdar://problem/169955071
>
adrian_taylor
Comment 2
2026-02-09 02:40:00 PST
Pull request:
https://github.com/WebKit/WebKit/pull/58188
EWS
Comment 3
2026-02-10 01:27:03 PST
Committed
307153@main
(43463e2bf5a4): <
https://commits.webkit.org/307153@main
> Reviewed commits have been landed. Closing PR #58188 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