Closed Bug 1675875 Opened 4 years ago Closed 4 years ago

Please document --enable-release and RUSTC_OPT_LEVEL

Categories

(Firefox Build System :: General, task, P3)

task

Tracking

(firefox85 fixed)

RESOLVED FIXED
85 Branch
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.

Summary: Please document --enable release or RUSTC_OPT_LEVEL → Please document --enable-release and RUSTC_OPT_LEVEL
Severity: -- → S3
Keywords: in-triage
Priority: -- → P3
Assignee: nobody → rstewart
Pushed by rstewart@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/bdc17cb7bac7
Document `--enable-release` and `RUSTC_OPT_LEVEL` r=sylvestre DONTBUILD
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 85 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: