Skip to content

Commit 8e59470

Browse files
committed
fix handling of mongocrypt.dll
1 parent 56f5c88 commit 8e59470

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.evergreen/scripts/setup-libmongocrypt.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,8 @@ mkdir libmongocrypt
4545
tar xzf libmongocrypt.tar.gz -C ./libmongocrypt
4646
ls -la libmongocrypt
4747
ls -la libmongocrypt/nocrypto
48+
49+
if [ "Windows_NT" = "${OS:-''}" ]; then
50+
# libmongocrypt's windows dll is not marked executable.
51+
chmod +x libmongocrypt/nocrypto/bin/mongocrypt.dll
52+
fi

.evergreen/scripts/setup-tests.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,6 @@ def handle_test_env() -> None:
230230
PYMONGOCRYPT_LIB = BASE / "lib/libmongocrypt.dylib"
231231
else:
232232
PYMONGOCRYPT_LIB = BASE / "bin/mongocrypt.dll"
233-
# libmongocrypt's windows dll is not marked executable.
234-
PYMONGOCRYPT_LIB.chmod(PYMONGOCRYPT_LIB.stat().st_mode | stat.S_IEXEC)
235233
if not PYMONGOCRYPT_LIB.exists():
236234
raise RuntimeError("Cannot find libmongocrypt shared object file")
237235
write_env("PYMONGOCRYPT_LIB", PYMONGOCRYPT_LIB.as_posix())

0 commit comments

Comments
 (0)