On Fri, Jan 11, 2019 at 09:24:25AM +0900, Mike Hommey wrote:
> Hi,
>
> Usual disclaimer: the following assumes this all sticks.
>
> I just landed bug 1515528 to autoland, which simplifies drastically how
> to build Firefox for arm64 windows, from a x86/x86_64 windows machine.
>
> At the moment, this requires some extra manual steps over mach
> bootstrap, because this doesn't work with clang-cl yet, and requires
> some extra MSVC components.
>
> In the MSVC installer, choose the following extra components:
> - Visual Studio C++ compiler and libraries for ARM64
> - Visual C++ ATL for ARM64
> - Visual C++ MFC for ARM64
>
> (apologies if the names above don't match exactly what the installer
> shows, I translated them from my Japanese installer)
>
> While we're here, you might find it useful to know that the build system
> supports using Visual Studio Build Tools 2017, which is has a smaller
> footprint than e.g. Visual Studio Community 2017.
>
> With all the above MSVC components installed, edit a mozconfig with the
> following content:
> ac_add_options --target=aarch64
Oh, forgot one more detail: you need to use nightly rust, and install
the aarch64 rust target:
rustup default nightly
rustup target add aarch64-pc-windows-msvc
Mike