Closed Bug 1384231 Opened 7 years ago Closed 5 years ago

|mach bootstrap| does not install appropriate rust target for cross compiles

Categories

(Firefox Build System :: Bootstrap Configuration, enhancement)

enhancement
Not set
normal

Tracking

(firefox57 wontfix)

RESOLVED FIXED
Tracking Status
firefox57 --- wontfix

People

(Reporter: nalexander, Unassigned)

References

()

Details

Right now, |mach bootstrap| installs the Rust target that corresponds to the build machine's platform (and in the case of Win64, also installs the Win32 target).

This isn't correct for mobile/android, and it won't be correct for folks targeting OS X from Linux or targeting Windows from WSL.

This ticket tracks separating the rustup platform from the rust target, addressing mobile/android in the short-term and setting the pattern for Windows from WSL.
Is there a work-around? I just hit this when trying to build non-artifact builds.
A workaround I used for macOS:

brew install rustup-init # The rust package must not be installed
rustup-init # I think default args should work
rustup target add armv7-linux-androideabi # Adds cross-compile target
mach bootstrap # Rerun to ensure all deps are installed
mach build # yay!
Product: Core → Firefox Build System
Component: General → Bootstrap Configuration

This was addressed by my mach bootstrap Android rehabilitation in Bug 1477487.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.