Skip to content

Commit 259f75e

Browse files
committed
chore: Use --jitless while we have the bugged 24.10 version of Node
1 parent a95f3cd commit 259f75e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.evergreen/setup-env.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,14 @@ fi
6969

7070
# On RHEL hosts, we run as root for some reason
7171
if [ `uname` = Linux ]; then
72-
export npm_config_unsafe_perm=true
72+
export npm_config_unsafe_perm=true
73+
if [ "$NODE_JS_MAJOR_VERSION" = "24" ] ; then
74+
# This is a temporary fix until we upgrade our toolkit to 24.11+
75+
# More info: https://github.com/mongodb-js/devtools-toolchain/pull/10
76+
export NODE_OPTIONS="$NODE_OPTIONS --jitless"
77+
echo "[WARNING] Using jitless v8."
78+
echo "[WARNING] NODE_OPTIONS: $NODE_OPTIONS"
79+
fi
7380
fi
7481

7582
# npm@7 changed the behavior to run install scripts for packages

0 commit comments

Comments
 (0)