Closed Bug 1879242 Opened 8 months ago Closed 7 months ago

--enable-bootstrap=something doesn't prioritize the bootstrapped toolchain path

Categories

(Firefox Build System :: Bootstrap Configuration, defect)

defect

Tracking

(firefox124 fixed)

RESOLVED FIXED
124 Branch
Tracking Status
firefox124 --- fixed

People

(Reporter: glandium, Assigned: glandium)

References

Details

Attachments

(1 file)

An example of how this manifests itself:

  • Install cbindgen with cargo install cbindgen
  • Run mach configure --enable-bootstrap=cbindgen
    Search for cbindgen in the configure output, and it will show it's using the one from ~/.cargo/bin instead of ~/.mozbuild/cbindgen.
    mach configure --enable-bootstrap is not affected.

(I found this while writing more extensive tests for --enable-bootstrap, so I'll add those at the same time as fixing this)

At the same time, add more extensive bootstrap unit tests.

Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/b69771107dfe Make --enable-bootstrap=something properly prioritize the bootstrapped toolchain. r=firefox-build-system-reviewers,sergesanspaille
Pushed by imoraru@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/805750f9ea00 fix linting ruff failures in python/mozbuild/mozbuild/test/configure/test_bootstrap.py. r=lint-fix
Status: NEW → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 124 Branch
Blocks: 1853271
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: