diff options
author | Sam Clegg <sbc@chromium.org> | 2018-11-30 14:45:59 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-30 14:45:59 -0800 |
commit | 120bc39f96ad2ae97f65fe677dd2b875159d406d (patch) | |
tree | e931f0fbe963f00a520a39dc26a5d4d6d10c2234 /scripts/test | |
parent | 33e337e5c141026505b114967a6bf0bf975e5dfc (diff) | |
download | binaryen-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.py | 2 |
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') |