mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 04:09:50 +00:00

The make backend was treating the first output of a GENERATED_FILES rule specially, since it was the target of the rule containing the script invocation. We want the outputs of GENERATED_FILES rules to be FileAvoidWrite so that we avoid triggering downstream rules if the outputs are unchanged, but if the target of the script invocation is FileAvoidWrite, then make may continually re-run the script during a no-op build. The solution here is to use a stub file as the target of the script invocation which will always be touched when the script runs. Since nothing else in the build depends on the stub, we don't need to FileAvoidWrite it. All actual outputs of the script can be FileAvoidWrite, and make can properly avoid work for files that haven't changed. MozReview-Commit-ID: 3GejZw2tpqu --HG-- extra : rebase_source : 2b9be82f893e89a4c2f254f05b1e8b9a0f9c631b
26 lines
1.1 KiB
Plaintext
26 lines
1.1 KiB
Plaintext
# To trigger a clobber replace ALL of the textual description below,
|
|
# giving a bug number and a one line description of why a clobber is
|
|
# required. Modifying this file will make configure check that a
|
|
# clobber has been performed before the build can continue.
|
|
#
|
|
# MERGE NOTE: When merging two branches that require a CLOBBER, you should
|
|
# merge both CLOBBER descriptions, to ensure that users on
|
|
# both branches correctly see the clobber warning.
|
|
#
|
|
# O <-- Users coming from both parents need to Clobber
|
|
# / \
|
|
# O O
|
|
# | |
|
|
# O <-- Clobber O <-- Clobber
|
|
#
|
|
# Note: The description below will be part of the error message shown to users.
|
|
#
|
|
# Modifying this file will now automatically clobber the buildbot machines \o/
|
|
#
|
|
|
|
# Are you updating CLOBBER because you think it's needed for your WebIDL
|
|
# changes to stick? As of bug 928195, this shouldn't be necessary! Please
|
|
# don't change CLOBBER for WebIDL changes any more.
|
|
|
|
Bug 1454912 - Changed out GENERATED_FILES are handled in the RecursiveMake backend
|