Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: a7db3c97ff50280c0f897b66165c2565d68310ed
https://github.com/WebKit/WebKit/commit/a7db3c97ff50280c0f897b66165c2565d68310ed
Author: Qianlang Chen <[email protected]>
Date: 2026-06-03 (Wed, 03 Jun 2026)
Changed paths:
A Source/WebInspectorUI/Scripts/generate-userinterface-depfile.sh
M Source/WebInspectorUI/WebInspectorUI.xcodeproj/project.pbxproj
Log Message:
-----------
Web Inspector: Avoid using `alwaysOutOfDate = 1` to force execution of Copy
User Interface Resources in incremental builds
https://bugs.webkit.org/show_bug.cgi?id=314844
Reviewed by BJ Burg.
The "Copy User Interface Resources" phase was originally marked as
alwaysOutOfDate, which was a stopgap for the lack of a reliable signal
telling Xcode which files under UserInterface had changed, and that
wasted work on most incremental builds.
This patch gives Xcode that signal: the phase now declares a
dependencyFile and writes it during the build, so the copy reruns only
when a resource it lists actually changes. It has to be a dependencyFile
rather than an xcfilelist because Xcode loads inputFileListPaths before
any phase runs, and a list produced during the build wouldn't exist yet.
Tested manually by building release WebInspectorUI:
- A clean build produces the dependency file.
- A no-change rebuild skips the copy phase.
- An in-place edit, an added file, and a removed file under
UserInterface each retriggers the copy phase.
* Source/WebInspectorUI/Scripts/generate-userinterface-depfile.sh: Added.
* Source/WebInspectorUI/WebInspectorUI.xcodeproj/project.pbxproj:
Canonical link: https://commits.webkit.org/314494@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications