Closed Bug 1641684 Opened 6 years ago Closed 6 years ago

Cross-compilation documentation for SpiderMonkey is out-of-date for ARM64

Categories

(Core :: JavaScript Engine, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla78
Tracking Status
firefox78 --- fixed

People

(Reporter: cfallin, Assigned: cfallin)

Details

Attachments

(1 file)

I set out to cross-compile an ARM64 JS shell binary today from my Linux/x86-64 host, and then run JIT tests using that binary under qemu.

Unfortunately, the current documentation for cross-compilation appears to be somewhat lacking. For example, the docs on dev.m.o are missing at least one environment-variable setting (CPATH) that turned out to be necessary. Also, there is no documentation on how to use qemu to run the cross-compiled binary under jit_test.py.

This bug tracks an update to js/src/doc/build.rst to cover these procedures in more detail.

This patch updates js/src/doc/build.rst to include up-to-date
instructions for cross-compiling a SpiderMonkey binary; for example, how
to build a Linux/aarch64 binary on a Linux/x86-64 host. It also adds
information about how to use qemu to run JIT-tests on this
cross-compiled binary without requiring native hardware at all. It has
been tested on the above platform pair (x86 to aarch64).

Pushed by cfallin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e3cb77c5f17e Add documentation about cross-compiling SpiderMonkey. r=bbouvier
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla78
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: