Skip to content

Commit 0c98c5f

Browse files
committed
fixup: include workarounds from mongosh repo
1 parent 7e4ca58 commit 0c98c5f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.evergreen.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,20 @@ functions:
5555
set -e
5656
set -x
5757
58+
rm -rf /tmp/m && mkdir -pv /tmp/m # Node.js compilation can fail on long path prefixes
59+
trap "rm -rf /tmp/m" EXIT
60+
export TMP=/tmp/m
61+
export TMPDIR=/tmp/m
62+
63+
# The CI machines we have for Windows and x64 macOS are not
64+
# able to compile OpenSSL with assembly support,
65+
# so we revert back to the slower version.
66+
if [ "$OS" == "Windows_NT" ]; then
67+
export BOXEDNODE_CONFIGURE_ARGS='openssl-no-asm'
68+
elif uname -a | grep -q 'Darwin.*x86_64'; then
69+
export BOXEDNODE_CONFIGURE_ARGS='--openssl-no-asm'
70+
fi
71+
5872
. .evergreen/use-node.sh
5973
npm run build
6074
TEST_NODE_VERSION="$TEST_NODE_VERSION" npm run test-ci

0 commit comments

Comments
 (0)