summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2020-12-30 15:06:40 -0800
committerGitHub <noreply@github.com>2020-12-30 15:06:40 -0800
commit3b52424c5f064d407b4b24aea1b6509a2e5f1f5c (patch)
treee4abefbac171404656a27f5c59e1f8e0e15688a1
parentdc4288cea1e403f011ec4ad7539df0f1b4dfdf47 (diff)
downloadbinaryen-3b52424c5f064d407b4b24aea1b6509a2e5f1f5c.tar.gz
binaryen-3b52424c5f064d407b4b24aea1b6509a2e5f1f5c.tar.bz2
binaryen-3b52424c5f064d407b4b24aea1b6509a2e5f1f5c.zip
When looking for node binary, search for 'node' before 'nodejs' (#3164)
`node` is he name used by the upstream project. `nodejs` is a legacy name used on older debian/ubunru systems. Searching for `nodejs` first meant it was finding my local (old) `nodejs` package even those I have a more recent `node` in my $PATH.
-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 dcb52b3fe..174967b42 100644
--- a/scripts/test/shared.py
+++ b/scripts/test/shared.py
@@ -191,7 +191,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 = os.getenv('NODE', which('nodejs') or which('node'))
+NODEJS = os.getenv('NODE', which('node') or which('nodejs'))
MOZJS = which('mozjs') or which('spidermonkey')
V8 = which('v8') or which('d8')