Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 008ca60a5f4ac752ec07008c85ef22fe3af2b86d
https://github.com/WebKit/WebKit/commit/008ca60a5f4ac752ec07008c85ef22fe3af2b86d
Author: Simon Lewis <[email protected]>
Date: 2026-05-08 (Fri, 08 May 2026)
Changed paths:
M Source/cmake/WebKitMacros.cmake
Log Message:
-----------
[CMake] Share the Swift explicit-module cache across swiftc invocations
https://bugs.webkit.org/show_bug.cgi?id=313965
Reviewed by Adrian Taylor.
-explicit-module-build makes swiftc scan and compile every transitive
SDK Clang module to .pcm before typechecking. Without a fixed cache
path each invocation does that into a private temp dir and discards
it, so the -typecheck/-emit-clang-header pass and cmake's own Swift
compile each pay the full SDK-module cold cost, every build. Pin the
cache so the second invocation -- and every later rebuild -- reuses
the first one's .pcm set.
Register the cache directory in ADDITIONAL_CLEAN_FILES so
`ninja -t clean` removes it; otherwise it accumulates .pcm files
across rebases and toolchain changes (observed: 2.9 GB / 1031 modules
after ten days), and a stale module can fail later swiftc invocations
that the original build of that module didn't exercise.
* Source/cmake/WebKitMacros.cmake:
Canonical link: https://commits.webkit.org/312928@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications