This repository contains the sources of SpiderMonkey for use with Servo.
The bindings are in the rust-mozjs repository.
In order to upgrade to a new version of SpiderMonkey:
- Download the tarball corresponding to the desired mozilla-central commit from treeherder's SM-tc(pkg) job.
- Update
etc/COMMIT
. - Run
python3 ./etc/update.py path/to/tarball
. - Clone and build the
servo/rust-bindgen
repository with llvm 3.9 or newer. - Clone the
servo/rust-mozjs
repository. - For each supported platform (linux 32, linux 64, macos 64, windows gcc and msvc 64):
$ cd path/to/rust-mozjs
$ ./etc/bindings-all.py <platform> ../path/to/bindgen ../path/to/clang/libs