Only force re-linking on 1-tier PGO builds
Categories
(Firefox Build System :: General, defect)
Tracking
(firefox71 fixed)
| Tracking | Status | |
|---|---|---|
| firefox71 | --- | fixed |
People
(Reporter: mshal, Assigned: mshal)
Details
Attachments
(1 file)
Local PGO builds (MOZ_PGO=1 ./mach build) still use 1-tier machinery until bug 1563403 is fixed. However, that doesn't stop someone from doing a 3-tier PGO build by fiddling with --enable-profile-generate/use flags and running the profile server. If they do, MOZ_AUTOMATION isn't set, which means buildsymbols recurses through the tree:
https://searchfox.org/mozilla-central/rev/2f29d53865cb895bf16c91336cc575aecd996a17/Makefile.in#242
Unfortunately 1-tier PGO uses a FORCE rule to force re-linking libraries & binaries in the profile-use stage, defined here:
So a subsequent buildsymbols will recurse through the tree, then forcefully re-link everything, which can add quite a bit of time to the build. Until bug 1563403 removes the rest of the 1-tier PGO stuff, we can hide the FORCE rule behind the MOZ_1TIER_PGO flag so it doesn't impact a local 3-tier PGO build.
| Assignee | ||
Comment 1•6 years ago
|
||
Comment 3•6 years ago
|
||
| bugherder | ||
Description
•