Open Bug 1343657 Opened 7 years ago Updated 2 years ago

Respect job count set via -j flag when building rust code

Categories

(Firefox Build System :: General, defect)

Other Branch
defect

Tracking

(Not tracked)

People

(Reporter: kats, Unassigned)

References

Details

Right now in m-c if you run `mach build -j1` it does a build respecting that -j1 flag, and just does a single job at a time. However, when the build gets around to running cargo, it doesn't pass on the -j option, so cargo spins up as many threads as it wants.

As a workaround I can do `CARGOFLAGS="-j1" mach build -j1` so that it gets picked up at [1] but ideally it would just work without that too.

[1] http://searchfox.org/mozilla-central/rev/9c1c7106eef137e3413fd867fc1ddfb1d3f6728c/config/rules.mk#900
Product: Core → Firefox Build System
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.