Closed Bug 1801268 Opened 3 years ago Closed 3 years ago

Clang should be built with ThinLTO

Categories

(Firefox Build System :: Toolchains, enhancement)

enhancement

Tracking

(firefox111 fixed)

RESOLVED FIXED
111 Branch
Tracking Status
firefox111 --- fixed

People

(Reporter: sergesanspaille, Assigned: sergesanspaille)

Details

Attachments

(1 file)

If we build our core compiler with LTO in addition to the existing PGO step, it should run faster, which in turn should make fx builds faster.

The Bugbug bot thinks this bug should belong to the 'Firefox Build System::Toolchains' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: General → Toolchains

There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:sergesanspaille, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit auto_nag documentation.

Flags: needinfo?(sguelton)
Flags: needinfo?(mh+mozilla)

This should be ok to land now that lld usage has reached a decent state.

Flags: needinfo?(sguelton)
Attachment #9304040 - Attachment description: Bug 1801268 - enable lto-built clang → WIP: Bug 1801268 - enable lto-built clang
Attachment #9304040 - Attachment description: WIP: Bug 1801268 - enable lto-built clang → Bug 1801268 - enable lto-built clang

edit: there was some warnings in the build logs that hints at using llvm-ar instead of ar when linking with lto, /me checks this.

(In reply to [:sergesanspaille] from comment #5)

edit: there was some warnings in the build logs that hints at using llvm-ar instead of ar when linking with lto, /me checks this.

where did that lead?

Flags: needinfo?(mh+mozilla) → needinfo?(sguelton)

I ended up forcing usage of llvm-ar, llvm-ranlib (from teh same toolchain as clang), and that worked nice.

Flags: needinfo?(sguelton)
Pushed by sguelton@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/db348b7063d4 enable lto-built clang r=firefox-build-system-reviewers,glandium
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 111 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: