Gijs Kruitbosch: Getting Firefox artifact builds working on an arm64/aarch64 windows device |
If, like me, you’re debugging a frontend issue and you think “I can just create some artifact builds on this device” — you might run in to a few issues. In the main, they’re caused by various bits of the build system attempting to use 64-bit x86 binaries. arm64 can run 32-bit x86 code under emulation, but not 64-bit. Here are the issues I encountered, chronologically.
hg clone mozilla-central
. It’ll take a while. You can also use pip to install/run other useful things, like mozregression (which seems to work but chokes when trying to kill off and delete Firefox processes when done; unsure why)../mach bootstrap
mostly works if you pick artifact builds, but: ~/.mozbuild/node
, download the 32-bit windows .zip from the NodeJS website and extract the contents at ~/.mozbuild/node
to placate it.path/to/mozilla-build/python3
. Then you will also want to make a copy of python.exe
in that directory available as python3.exe
, because that’s the path mozilla-build expects.watchman.exe
that mozilla-build has helpfully provided. Rename the watchman directory inside mozilla-build (or delete it if you’re feeling vengeful) to deal with this.That’s it! Now artifact builds should work – or at least, they did for me. Some of the issues are caused by bootstrap, and thus fixable, but obviously we can’t retrospectively change an old copy of mozilla-build. I’ve filed a bug to provide mozilla-build for aarch64.
Комментировать | « Пред. запись — К дневнику — След. запись » | Страницы: [1] [Новые] |