Skip to content

Commit f2be43a

Browse files
"RELEASE" mode does not use release archive
1 parent f19cae6 commit f2be43a

File tree

2 files changed

+1
-24
lines changed

2 files changed

+1
-24
lines changed

.evergreen/scripts/compile-unix.sh

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -98,23 +98,7 @@ if [[ "${COVERAGE}" == "ON" ]]; then
9898
configure_flags_append "-DENABLE_COVERAGE=ON" "-DENABLE_EXAMPLES=OFF"
9999
fi
100100

101-
if [[ "${RELEASE}" == "ON" ]]; then
102-
# Build from the release tarball.
103-
mkdir build-dir
104-
declare -a tar_args=("xf" "../mongoc.tar.gz" "-C" "build-dir" "--strip-components=1")
105-
106-
# --strip-components is an GNU tar extension. Check if the platform
107-
# has GNU tar installed as `gtar`, otherwise we assume to be on
108-
# platform that supports it
109-
# command -v returns success error code if found and prints the path to it
110-
if command -v gtar 2>/dev/null; then
111-
gtar "${tar_args[@]}"
112-
else
113-
tar "${tar_args[@]}"
114-
fi
115-
116-
cd build-dir
117-
else
101+
if [[ "${RELEASE}" != "ON" ]]; then
118102
configure_flags_append "-DENABLE_DEBUG_ASSERTIONS=ON"
119103
fi
120104

.evergreen/scripts/compile-windows.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,6 @@ configure_flags_append "-DCMAKE_PREFIX_PATH=$(native-path "${install_dir}")"
5555
configure_flags_append "-DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF"
5656
configure_flags_append "-DENABLE_MAINTAINER_FLAGS=ON"
5757

58-
if [[ "${RELEASE:-}" == "ON" ]]; then
59-
# Build from the release tarball.
60-
mkdir build-dir
61-
tar xf ../mongoc.tar.gz -C build-dir --strip-components=1
62-
cd build-dir
63-
fi
64-
6558
configure_flags_append_if_not_null C_STD_VERSION "-DCMAKE_C_STANDARD=${C_STD_VERSION:-}"
6659
configure_flags_append_if_not_null SASL "-DENABLE_SASL=${SASL:-}"
6760
configure_flags_append_if_not_null SNAPPY "-DENABLE_SNAPPY=${SNAPPY:-}"

0 commit comments

Comments
 (0)