Closed Bug 1473667 Opened 6 years ago Closed 6 years ago

FasterMake backend does not work well with install manifests and GENERATED_FILES with multiple outputs

Categories

(Firefox Build System :: General, enhancement)

enhancement
Not set
normal

Tracking

(firefox63 fixed)

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: mshal, Assigned: mshal)

References

Details

Attachments

(1 file)

Bug 1461714 would like to add some GENERATED_FILES with multiple outputs that will produce files used by install manifests, roughly looking like this:

GENERATED_FILES += [('output1', 'output2', ...)]
FINAL_TARGET_FILES.foo += ['!output1', '!output2', ...]

This causes the FasterMake backend to invoke 'make -C dirname filename' for each of the outputs so the GENERATED_FILES are built by the RecursiveMake backend before the install manifest is processed by the FasterMake backend: https://dxr.mozilla.org/mozilla-central/rev/6c0fa9a675c91390ca27664ffb626c56e8afea4d/config/faster/rules.mk#73

This works fine for GENERATED_FILES with single outputs, which are currently the only ones that are used in install manifests, and therefore trigger this rule. However, with multiple outputs, the RecursiveMake backend is invoked multiple times to build the same set of files, potentially in parallel.

We should support this better in the FasterMake backend by ensuring that the rule is only invoked once.
Attachment #8990077 - Flags: review?(core-build-config-reviews) → review?(gps)
Comment on attachment 8990077 [details]
Bug 1473667 - Handle multiple GENERATED_FILES outputs in the faster make backend;

https://reviewboard.mozilla.org/r/255090/#review265918
Attachment #8990077 - Flags: review?(gps) → review+
Pushed by mshal@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f316cbb31c28
Handle multiple GENERATED_FILES outputs in the faster make backend; r=gps
https://hg.mozilla.org/mozilla-central/rev/f316cbb31c28
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: