Skip to content

Commit 1d59d77

Browse files
committed
fix: adjust zetasql install order
1 parent 1633471 commit 1d59d77

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

build_env/build_library.sh

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,19 @@ if [ ! -f gtest_succ ]; then
7272
echo "install gtest done"
7373
fi
7474

75+
if [ -f "zetasql_succ" ]; then
76+
echo "zetasql_succ"
77+
else
78+
echo "installing zetasql...."
79+
curl -SL -o libzetasql-0.2.6-linux-gnu-x86_64-centos.tar.gz https://github.com/4paradigm/zetasql/releases/download/v0.2.6/libzetasql-0.2.6-linux-gnu-x86_64-centos.tar.gz
80+
tar -zxvf libzetasql-0.2.6-linux-gnu-x86_64-centos.tar.gz
81+
pushd libzetasql-0.2.6
82+
cp -rf include/* $DEPS_PREFIX/include/
83+
cp -rf lib/* $DEPS_PREFIX/lib/
84+
popd
85+
touch zetasql_succ
86+
echo "install zetasql done"
87+
fi
7588

7689

7790
if [ -f "zlib_succ" ]; then
@@ -331,19 +344,7 @@ else
331344
echo "install boost done"
332345
fi
333346

334-
if [ -f "zetasql_succ" ]; then
335-
echo "zetasql_succ"
336-
else
337-
echo "installing zetasql...."
338-
curl -SL -o libzetasql-0.2.6-linux-gnu-x86_64-centos.tar.gz https://github.com/4paradigm/zetasql/releases/download/v0.2.6/libzetasql-0.2.6-linux-gnu-x86_64-centos.tar.gz
339-
tar -zxvf libzetasql-0.2.6-linux-gnu-x86_64-centos.tar.gz
340-
pushd libzetasql-0.2.6
341-
cp -rf include/* $DEPS_PREFIX/include/
342-
cp -rf lib/* $DEPS_PREFIX/lib/
343-
popd
344-
touch zetasql_succ
345-
echo "install zetasql done"
346-
fi
347+
347348

348349

349350
# Remove dynamic library files for static link

0 commit comments

Comments
 (0)