Skip to content

Commit c52f236

Browse files
authored
use jsvu to get spidermonkey (WebAssembly#1443)
jsvu is an easy way to get JS VMs. This uses it to get SpiderMonkey, which is then used to check asm.js validation in the wasm2asm tests.
1 parent 963b585 commit c52f236

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
stage: test
1717
compiler: clang
1818
python: 2.7
19-
node_js: 7
19+
node_js: 9
2020
addons:
2121
apt:
2222
sources: ['ubuntu-toolchain-r-test']
@@ -25,6 +25,10 @@ jobs:
2525
- export ASAN_OPTIONS="symbolize=1"
2626
install:
2727
- pip install --user flake8==3.4.1
28+
# get jsvu in order to get more js engines
29+
- npm install jsvu -g
30+
- export PATH="${HOME}/.jsvu:${PATH}"
31+
- jsvu --os=linux64 --engines=spidermonkey
2832
before_script:
2933
# Check the style of a subset of Python code until the other code is updated.
3034
- flake8 ./scripts/

scripts/test/shared.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def is_exe(fpath):
155155
NATIVEXX = (os.environ.get('CXX') or which('mingw32-g++') or
156156
which('g++') or which('clang++'))
157157
NODEJS = which('nodejs') or which('node')
158-
MOZJS = which('mozjs')
158+
MOZJS = which('mozjs') or which('spidermonkey')
159159
EMCC = which('emcc')
160160

161161
BINARYEN_INSTALL_DIR = os.path.dirname(options.binaryen_bin)

0 commit comments

Comments
 (0)