gecko-dev/build/build-clang/profile.json
serge-sans-paille 229778db45 Bug 1801268 - enable lto-built clang r=firefox-build-system-reviewers,glandium
Using ThinLTO because it's a good compromise between performance and
compilation speed.

Activating it for both profile generation and profile usage, doing it
only for profile usage leads to a lot of mismatch, aka

        function control flow change detected (hash mismatch)

which leads to profile information not beoing used.

This requires using the whole llvm toolchain (lld, llvm-ar, llvm-ranlib)
from the same revision.

This is disabled on Windows where it causes link error on the LLVM
Plugin system.

Differential Revision: https://phabricator.services.mozilla.com/D162371
2023-01-25 09:46:40 +00:00

7 lines
145 B
JSON

{
"stages": "3",
"pgo": true,
"ranlib": "{MOZ_FETCHES_DIR}/clang/bin/llvm-ranlib",
"ar": "{MOZ_FETCHES_DIR}/clang/bin/llvm-ar"
}