File tree Expand file tree Collapse file tree 3 files changed +23
-4
lines changed Expand file tree Collapse file tree 3 files changed +23
-4
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,13 @@ compile_libmongocrypt() {
20
20
" -DBUILD_VERSION=1.12.0"
21
21
)
22
22
23
+ if [[ " ${OSTYPE:? } " == cygwin ]]; then
24
+ crypt_cmake_flags+=(
25
+ " -DCMAKE_POLICY_DEFAULT_CMP0141=NEW"
26
+ " -DCMAKE_MSVC_DEBUG_INFORMATION_FORMAT=Embedded"
27
+ )
28
+ fi
29
+
23
30
env \
24
31
DEBUG=" 0" \
25
32
CMAKE_EXE=" ${cmake_binary} " \
Original file line number Diff line number Diff line change @@ -131,12 +131,16 @@ echo "Installing libmongocrypt..."
131
131
}
132
132
echo " Installing libmongocrypt... done."
133
133
134
- echo " CFLAGS: ${CFLAGS} "
135
- echo " configure_flags: ${configure_flags[*]} "
136
-
137
134
# Use ccache if able.
138
135
. " ${script_dir:? } /find-ccache.sh"
139
136
find_ccache_and_export_vars " $( pwd) " || true
137
+ if [[ " ${OSTYPE:? } " == cygwin ]]; then
138
+ configure_flags_append " -DCMAKE_POLICY_DEFAULT_CMP0141=NEW"
139
+ configure_flags_append " -DCMAKE_MSVC_DEBUG_INFORMATION_FORMAT=$<$<CONFIG:Debug,RelWithDebInfo>:Embedded>"
140
+ fi
141
+
142
+ echo " CFLAGS: ${CFLAGS} "
143
+ echo " configure_flags: ${configure_flags[*]} "
140
144
141
145
" ${cmake_binary} " " ${configure_flags[@]} " .
142
146
" ${cmake_binary} " --build .
Original file line number Diff line number Diff line change @@ -134,6 +134,14 @@ if [ "${COMPILE_LIBMONGOCRYPT}" = "ON" ]; then
134
134
configure_flags_append " -DENABLE_CLIENT_SIDE_ENCRYPTION=ON"
135
135
fi
136
136
137
+ # Use ccache if able.
138
+ . " ${script_dir:? } /find-ccache.sh"
139
+ find_ccache_and_export_vars " $( pwd) " || true
140
+ if [[ " ${OSTYPE:? } " == cygwin ]]; then
141
+ configure_flags_append " -DCMAKE_POLICY_DEFAULT_CMP0141=NEW"
142
+ configure_flags_append " -DCMAKE_MSVC_DEBUG_INFORMATION_FORMAT=$<$<CONFIG:Debug,RelWithDebInfo>:Embedded>"
143
+ fi
144
+
137
145
" ${cmake_binary:? } " -S . -B " ${build_dir:? } " -G " $CC " " ${configure_flags[@]} " " ${extra_configure_flags[@]} "
138
146
" ${cmake_binary:? } " --build " ${build_dir:? } " --config " ${build_config:? } "
139
147
" ${cmake_binary:? } " --install " ${build_dir:? } " --config " ${build_config:? } "
147
155
if [[ " $EXTRA_CONFIGURE_FLAGS " != * " ENABLE_MONGOC=OFF" * ]]; then
148
156
# Check public headers for extra warnings.
149
157
" ${cmake_binary:? } " --build " ${build_dir:? } " --config " ${build_config:? } " --target public-header-warnings
150
- fi
158
+ fi
You can’t perform that action at this time.
0 commit comments