Bug 307323

Summary: Add clang-target argument
Product: WebKit Reporter: adrian_taylor
Component: WebKit Misc.Assignee: 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-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
Radar WebKit Bug Importer
Comment 1 2026-02-09 02:35:36 PST
adrian_taylor
Comment 2 2026-02-09 02:40:00 PST
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.