Ignore:
Timestamp:
Oct 7, 2020, 5:23:53 PM (5 years ago)
Author:
Keith Rollin
Message:

Update post-processing rules for headers to not unnecessarily change timestamps
https://bugs.webkit.org/show_bug.cgi?id=217371
<rdar://problem/69992230>

Reviewed by Darin Adler.

Under XCBuild, the scripts employed in custom build rules can be
invoked in innocuous situations. A common example is when the user is
building from the command-line and they change the make output from
stdout to a file, or vice-versa. Changing the output changes the
setting of the COLOR_DIAGNOSTICS environment variable, which is enough
to cause XCBuild to think something is different and that the custom
build rule needs to be invoked. For the script's part, nothing
significant has changed, yet it post-processes the header files,
causing their modification dates to change, causing downstream
rebuilds to occur.

Fix this problem by adopting an approach that doesn't modify the
post-processed header files unless their contents actually change.

Source/JavaScriptCore:

  • Scripts/postprocess-header-rule:

Source/ThirdParty/ANGLE:

  • adjust-angle-include-paths-rule:

Source/ThirdParty/libwebrtc:

  • libwebrtc.xcodeproj/project.pbxproj:

Source/WebKit:

No new tests -- this is a build change only.

  • Scripts/postprocess-header-rule:

Source/WebKitLegacy:

  • scripts/postprocess-header-rule:

Source/WTF:

  • Scripts/GeneratePreferences.rb:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r268077 r268163  
     12020-10-07  Keith Rollin  <[email protected]>
     2
     3        Update post-processing rules for headers to not unnecessarily change timestamps
     4        https://bugs.webkit.org/show_bug.cgi?id=217371
     5        <rdar://problem/69992230>
     6
     7        Reviewed by Darin Adler.
     8
     9        Under XCBuild, the scripts employed in custom build rules can be
     10        invoked in innocuous situations. A common example is when the user is
     11        building from the command-line and they change the `make` output from
     12        stdout to a file, or vice-versa. Changing the output changes the
     13        setting of the COLOR_DIAGNOSTICS environment variable, which is enough
     14        to cause XCBuild to think something is different and that the custom
     15        build rule needs to be invoked. For the script's part, nothing
     16        significant has changed, yet it post-processes the header files,
     17        causing their modification dates to change, causing downstream
     18        rebuilds to occur.
     19
     20        Fix this problem by adopting an approach that doesn't modify the
     21        post-processed header files unless their contents actually change.
     22
     23        * Scripts/postprocess-header-rule:
     24
    1252020-10-05  Yusuke Suzuki  <[email protected]>
    226
Note: See TracChangeset for help on using the changeset viewer.