mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
emscripten.sh: properly detect the Javascript runtime
This commit is contained in:
@@ -172,12 +172,10 @@ fi
|
||||
|
||||
if test "$NODE" = ""; then
|
||||
for candidate in bun nodejs node /usr/local/bin/bun /usr/local/bin/nodejs /usr/local/bin/node; do
|
||||
case $($candidate --version 2>&1) in #(
|
||||
v*)
|
||||
if command -v $candidate >/dev/null; then
|
||||
NODE=$candidate
|
||||
break
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
@@ -186,7 +184,7 @@ if [ "x$BROWSER_TESTS" != "x" ]; then
|
||||
emmake make $MAKE_FLAGS CPPFLAGS="$CPPFLAGS -DBROWSER_TESTS=1" check >/dev/null 2>&1
|
||||
else
|
||||
if test "$NODE" = ""; then
|
||||
echo 'node.js not found - test suite skipped' >&2
|
||||
echo 'Javascript runtime not found - test suite skipped' >&2
|
||||
exit 1
|
||||
fi
|
||||
echo "Using [${NODE}] as a Javascript runtime"
|
||||
|
||||
Reference in New Issue
Block a user