summaryrefslogtreecommitdiff
path: root/scripts/test
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2018-11-30 14:45:59 -0800
committerGitHub <noreply@github.com>2018-11-30 14:45:59 -0800
commit120bc39f96ad2ae97f65fe677dd2b875159d406d (patch)
treee931f0fbe963f00a520a39dc26a5d4d6d10c2234 /scripts/test
parent33e337e5c141026505b114967a6bf0bf975e5dfc (diff)
downloadbinaryen-120bc39f96ad2ae97f65fe677dd2b875159d406d.tar.gz
binaryen-120bc39f96ad2ae97f65fe677dd2b875159d406d.tar.bz2
binaryen-120bc39f96ad2ae97f65fe677dd2b875159d406d.zip
Check $NODE environment variable when looking for node (#1792)
This allows me to run tests on a system where the default installed node is not recent enough.
Diffstat (limited to 'scripts/test')
-rw-r--r--scripts/test/shared.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/test/shared.py b/scripts/test/shared.py
index a7bdda085..f8da23851 100644
--- a/scripts/test/shared.py
+++ b/scripts/test/shared.py
@@ -157,7 +157,7 @@ NATIVECC = (os.environ.get('CC') or which('mingw32-gcc') or
which('gcc') or which('clang'))
NATIVEXX = (os.environ.get('CXX') or which('mingw32-g++') or
which('g++') or which('clang++'))
-NODEJS = which('nodejs') or which('node')
+NODEJS = os.getenv('NODE', which('nodejs') or which('node'))
MOZJS = which('mozjs') or which('spidermonkey')
EMCC = which('emcc')