Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 2a836959c0f439e6580b494bd51b6ca276f8de85
https://github.com/WebKit/WebKit/commit/2a836959c0f439e6580b494bd51b6ca276f8de85
Author: Geoffrey Garen <[email protected]>
Date: 2026-05-27 (Wed, 27 May 2026)
Changed paths:
M Source/WebCore/CMakeLists.txt
M Source/WebCore/PAL/pal/CMakeLists.txt
M Source/WebCore/PlatformCocoa.cmake
M Source/WebGPU/WebGPU/CMakeLists.txt
M Source/WebKit/CMakeLists.txt
M Source/WebKit/PlatformMac.cmake
M Source/WebKit/Shared/WebKit-Swift.h
M Source/WebKit/UIProcess/RemotePageProxy.cpp
M Source/cmake/WebKitMacros.cmake
Log Message:
-----------
[CMake] Avoid serializing all compilation behind PAL Swift interop
https://bugs.webkit.org/show_bug.cgi?id=315482
rdar://177843488
Reviewed by Mike Wyrzykowski.
Currently, Swift interop header generation takes a few minutes (!!).
So it's profitable to specify when build steps do not need to wait
for it.
Added a ${target}_SwiftInterop OBJECT sub-target for each target
that uses Swift interop (PAL, WebGPU, WebKit). The _SwiftInterop
sub-target waits for the Swift interop header, but the rest of
the target does not.
Listed sources and headers explicitly to work around rdar://177840132.
(Otherwise, editing a header will not recompile .swift source code.)
Also took the opportunity to remove additional serialization:
WebCore<-WebGPU: WebCore links WebGPU (+ Swift interop) but doesn't need
to wait for WebGPU in order to start compiling.
WebCoreGeneratedSources: WebCore source generation doesn't need to
wait on all WebCore dependencies (+ PAL Swift interop).
WebKit<-WebKitLegacy: WebKit only needs to wait to link
WebKitLegacy, but it can start compiling in parallel.
* Source/WebCore/CMakeLists.txt:
* Source/WebCore/PAL/pal/CMakeLists.txt:
* Source/WebCore/PlatformCocoa.cmake:
* Source/WebGPU/WebGPU/CMakeLists.txt:
* Source/WebKit/CMakeLists.txt:
* Source/WebKit/PlatformMac.cmake:
* Source/WebKit/UIProcess/RemotePageProxy.cpp: Fixed a non-unified
missing header issue. Swift interop targets are non-unified.
* Source/WebKitLegacy/PlatformIOS.cmake: Fixed indendation.
* Source/cmake/WebKitMacros.cmake:
Canonical link: https://commits.webkit.org/313996@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications