Commit 7d4b28d 1 parent ce273fa commit 7d4b28d Copy full SHA for 7d4b28d
File tree 2 files changed +9
-4
lines changed
2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ if [[ "$OSTYPE" == darwin* ]]; then
29
29
export INSTALL_PREFIX=${INSTALL_PREFIX:- " $( pwd) /deps-install" }
30
30
fi
31
31
32
+ WGET_OPTIONS=${WGET_OPTIONS:- " " }
33
+
32
34
function install_aws_deps {
33
35
local AWS_REPO_NAME=" aws/aws-sdk-cpp"
34
36
local AWS_SDK_VERSION=" 1.11.321"
@@ -50,7 +52,7 @@ function install_aws_deps {
50
52
# minio will have to approved under the Privacy & Security on MacOS on first use.
51
53
MINIO_OS=" darwin"
52
54
fi
53
- wget https://dl.min.io/server/minio/release/${MINIO_OS} -${MINIO_ARCH} /archive/minio.RELEASE.2022-05-26T05-48-41Z -O ${MINIO_BINARY}
55
+ wget ${WGET_OPTIONS} https://dl.min.io/server/minio/release/${MINIO_OS} -${MINIO_ARCH} /archive/minio.RELEASE.2022-05-26T05-48-41Z -O ${MINIO_BINARY}
54
56
chmod +x ./${MINIO_BINARY}
55
57
mv ./${MINIO_BINARY} /usr/local/bin/
56
58
fi
@@ -155,7 +157,7 @@ function install_hdfs_deps {
155
157
# Dependencies for Hadoop testing
156
158
wget_and_untar https://archive.apache.org/dist/hadoop/common/hadoop-3.3.0/hadoop-3.3.0.tar.gz hadoop
157
159
cp -a ${DEPENDENCY_DIR} /hadoop /usr/local/
158
- wget -P /usr/local/hadoop/share/hadoop/common/lib/ https://repo1.maven.org/maven2/junit/junit/4.11/junit-4.11.jar
160
+ wget ${WGET_OPTIONS} -P /usr/local/hadoop/share/hadoop/common/lib/ https://repo1.maven.org/maven2/junit/junit/4.11/junit-4.11.jar
159
161
160
162
LINUX_DISTRIBUTION=$( . /etc/os-release && echo ${ID} )
161
163
if [[ " $LINUX_DISTRIBUTION " == " ubuntu" || " $LINUX_DISTRIBUTION " == " debian" ]]; then
Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ DEPENDENCY_DIR=${DEPENDENCY_DIR:-$(pwd)/deps-download}
20
20
OS_CXXFLAGS=" "
21
21
NPROC=${BUILD_THREADS:- $(getconf _NPROCESSORS_ONLN)}
22
22
23
+ CURL_OPTIONS=${CURL_OPTIONS:- " " }
24
+ CMAKE_OPTIONS=${CMAKE_OPTIONS:- " " }
25
+
23
26
function run_and_time {
24
27
time " $@ " || (echo " Failed to run $* ." ; exit 1 )
25
28
{ echo " + Finished running $* " ; } 2> /dev/null
@@ -173,7 +176,7 @@ function wget_and_untar {
173
176
fi
174
177
mkdir -p " ${DIR} "
175
178
pushd " ${DIR} "
176
- curl -L " ${URL} " > $2 .tar.gz
179
+ curl ${CURL_OPTIONS} -L " ${URL} " > $2 .tar.gz
177
180
tar -xz --strip-components=1 -f $2 .tar.gz
178
181
popd
179
182
popd
@@ -205,7 +208,7 @@ function cmake_install {
205
208
COMPILER_FLAGS+=${OS_CXXFLAGS}
206
209
207
210
# CMAKE_POSITION_INDEPENDENT_CODE is required so that Velox can be built into dynamic libraries \
208
- cmake -Wno-dev -B" ${BINARY_DIR} " \
211
+ cmake -Wno-dev ${CMAKE_OPTIONS} -B" ${BINARY_DIR} " \
209
212
-GNinja \
210
213
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
211
214
-DCMAKE_CXX_STANDARD=17 \
You can’t perform that action at this time.
0 commit comments