Skip to content

Commit 41c010c

Browse files
committed
fix build.sh
1 parent 8d8e330 commit 41c010c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

scripts/build.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ ubuntu_setup () {
2626
libboost-all-dev ninja-build python3-setuptools \
2727
libtinfo-dev pkg-config python3-pip python3-toml \
2828
openjdk-11-jdk \
29+
libbz2-dev liblzma-dev libzstd-dev \
2930
"
3031

3132
# Create deps for Clang and Z3_SLHV
@@ -71,7 +72,14 @@ ubuntu_setup () {
7172
fi
7273
cd Z3-SLHV
7374
if [ ! -d "z3_slhv_lib" ]; then
74-
rm -r build && python3 mk_${STATIC}_cmake.py
75+
if [ -d "build" ]; then
76+
rm -rf build/
77+
fi
78+
if [ $STATIC = ON ]; then
79+
python3 mk_static_cmake.py
80+
else
81+
python3 mk_shared_cmake.py
82+
fi
7583
cd build && ninja install
7684
fi
7785
cd $DEPS_ROOT/Z3-SLHV

0 commit comments

Comments
 (0)