[Webkit-unassigned] [Bug 234941] postprocess-headers.sh: Avoid redundant processing to speed up incremental Xcode builds

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 7 17:23:07 PST 2022


https://bugs.webkit.org/show_bug.cgi?id=234941

--- Comment #2 from Elliott Williams <emw at apple.com> ---
Alexey <ap at webkit.org> pointed me to similar patches in the past that have caused problems. I don't think they invalidate my approach here, but am curious to hear if you think otherwise:

- https://bugs.webkit.org/show_bug.cgi?id=220239
- https://bugs.webkit.org/show_bug.cgi?id=166810

These involved conditionally skipping a write to a file when its prerequisites changed. Skipping writes meant not updating an output file's modification time, which caused the respective scripts to execute on every rebuild after it had decided to skip writing an output file.

This patch determines whether *Xcode* skipped a copy, and only skips postprocessing if Xcode skipped copying. Skipping postprocessing should not lead to situations where Xcode tries to copy a header repeatedly, since Xcode's build system is not interested in whether this script runs at all.

- https://bugs.webkit.org/show_bug.cgi?id=77510

I'm not sure how this one is related -- seems like it ultimately caused problems because of complex Make logic that broke rebuilds.

--

It's worth noting that we only have postprocess-headers.sh because APPLY_RULES_IN_COPY_FILES is not supported by the legacy build system. Changing it to only process a file once per copy matches behavior we get from the copy file build rule in XCBuild.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220108/f8a1eb56/attachment-0001.htm>


More information about the webkit-unassigned mailing list