Skip to content

Commit 0ce43c3

Browse files
committed
CDRIVER-299 Add SSPI Evergreen configuration
1 parent 96dd6ed commit 0ce43c3

File tree

3 files changed

+156
-53
lines changed

3 files changed

+156
-53
lines changed

.evergreen/compile-windows.sh

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,28 @@ set -o errexit # Exit the script with error if any of the commands fail
1010

1111

1212
CONFIGURE_FLAGS="-DENABLE_AUTOMATIC_INIT_AND_CLEANUP:BOOL=OFF"
13-
if [ "$SASL" = "no" ]; then
14-
CONFIGURE_FLAGS="$CONFIGURE_FLAGS -DENABLE_SASL:BOOL=OFF"
15-
else
13+
case "$SASL" in
14+
no)
15+
CONFIGURE_FLAGS="$CONFIGURE_FLAGS -DENABLE_SASL:BOOL=OFF"
16+
;;
17+
sasl)
1618
case "$CC" in
1719
*Win64)
18-
CONFIGURE_FLAGS="$CONFIGURE_FLAGS"
20+
CONFIGURE_FLAGS="$CONFIGURE_FLAGS -DENABLE_SASL=CYRUS"
1921
;;
2022
*)
21-
CONFIGURE_FLAGS="$CONFIGURE_FLAGS -DENABLE_SASL:BOOL=OFF"
23+
CONFIGURE_FLAGS="$CONFIGURE_FLAGS -DENABLE_SASL:BOOL=OFF"
2224
;;
2325
esac
24-
fi
26+
;;
27+
sspi)
28+
CONFIGURE_FLAGS="$CONFIGURE_FLAGS -DENABLE_SASL=SSPI"
29+
;;
30+
*)
31+
CONFIGURE_FLAGS="$CONFIGURE_FLAGS -DENABLE_SASL:BOOL=OFF"
32+
;;
33+
esac
34+
2535
case "$SSL" in
2636
openssl)
2737
CONFIGURE_FLAGS="$CONFIGURE_FLAGS -DENABLE_SSL=OPENSSL"

0 commit comments

Comments
 (0)