File tree Expand file tree Collapse file tree 2 files changed +1
-24
lines changed Expand file tree Collapse file tree 2 files changed +1
-24
lines changed Original file line number Diff line number Diff line change @@ -98,23 +98,7 @@ if [[ "${COVERAGE}" == "ON" ]]; then
98
98
configure_flags_append " -DENABLE_COVERAGE=ON" " -DENABLE_EXAMPLES=OFF"
99
99
fi
100
100
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
118
102
configure_flags_append " -DENABLE_DEBUG_ASSERTIONS=ON"
119
103
fi
120
104
Original file line number Diff line number Diff line change @@ -55,13 +55,6 @@ configure_flags_append "-DCMAKE_PREFIX_PATH=$(native-path "${install_dir}")"
55
55
configure_flags_append " -DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF"
56
56
configure_flags_append " -DENABLE_MAINTAINER_FLAGS=ON"
57
57
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
-
65
58
configure_flags_append_if_not_null C_STD_VERSION " -DCMAKE_C_STANDARD=${C_STD_VERSION:- } "
66
59
configure_flags_append_if_not_null SASL " -DENABLE_SASL=${SASL:- } "
67
60
configure_flags_append_if_not_null SNAPPY " -DENABLE_SNAPPY=${SNAPPY:- } "
You can’t perform that action at this time.
0 commit comments