Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 9584faf20f9822331332179303b55a4fcf0c1ede
https://github.com/WebKit/WebKit/commit/9584faf20f9822331332179303b55a4fcf0c1ede
Author: Nikolas Zimmermann <[email protected]>
Date: 2026-06-01 (Mon, 01 Jun 2026)
Changed paths:
M Source/cmake/WebKitMacros.cmake
Log Message:
-----------
REGRESSION(314042@main): Intermittent build failures on CMake+Gtk/Swift builds
https://bugs.webkit.org/show_bug.cgi?id=316000
Reviewed by Geoffrey Garen.
Since 314042@main the interop header is emitted as a side effect of the Swift
compile, via -emit-clang-header-path on the target's shared Swift
COMPILE_OPTIONS. In the pre-CMP0157 (legacy) path the throw-away
WebKit_SwiftCompile helper inherits those options, so both the helper and the
real library link write the same WebKit-Swift-CPP.h.tmp. The copy_if_different
step is ordered after only the helper, so the link's unordered write races the
copy and fails it sporadically ("Error copying file (if different)").
Emit the header from exactly the target whose swiftmodule the copy depends on:
the real target under CMP0157, the helper otherwise. The real library link no
longer emits the header, leaving a single writer correctly ordered before the
copy.
* Source/cmake/WebKitMacros.cmake:
Canonical link: https://commits.webkit.org/314322@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications