Please document --enable-release and RUSTC_OPT_LEVEL
Categories
(Firefox Build System :: General, task, P3)
Tracking
(firefox85 fixed)
Tracking | Status | |
---|---|---|
firefox85 | --- | fixed |
People
(Reporter: mstange, Assigned: rstewart)
Details
(Keywords: in-triage)
Attachments
(1 file)
By default, rust code in local builds is not compiled with full optimizations. This can make local builds noticeably slower, and unfit for performance work.
The recommended workarounds, as far as I'm aware, are adding export RUSTC_OPT_LEVEL=2
or ac_add_options --enable-release
to the mozconfig. The former closes most of the performance gap while making builds a little slower, and the latter makes linking a lot slower because it also turns on link time optimization. I use the former for my local builds.
However, I cannot find documentation for these flags on https://firefox-source-docs.mozilla.org/ . It would be nice to have them listed somewhere, maybe in this list of optimization build settings.
Reporter | ||
Updated•4 years ago
|
Reporter | ||
Comment 1•4 years ago
|
||
See https://groups.google.com/g/mozilla.dev.platform/c/pN9O5EB_1q4/m/tbbzmWztAQAJ for context, and for a list of complaints.
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 2•4 years ago
|
||
Comment 4•4 years ago
|
||
bugherder |
Description
•