Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1641674 - Don't use --gc-sections during profile generation r=fro…
…ydnj For not-well-understood reasons, ld's `--gc-sections` discards a large number of the PGO bookkeeping structures that enable us to keep track of function counters, and the effect gets worse in object files generated by clang-10. As much as I'd like to understand this better, the investigations take way too much time. As a path of least resistance, we can disable `--gc-sections` for the instrumentation phase of PGO builds. It won't harm anything since users never see those builds, and it will improve the performance of the optimized phase greatly. Differential Revision: https://phabricator.services.mozilla.com/D78112
- Loading branch information