Skip to content

Commit 8d0a363

Browse files
committed
update build script
1 parent e32c220 commit 8d0a363

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

build.bash

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ cd build/tools
1111

1212
cd ..
1313

14-
REBUILD=1
14+
REBUILD=0
1515
SKIP_TESTS=0
1616
CREATE_ZIP=0
1717
CMAKE_BUILD_TYPE=Release
@@ -23,8 +23,8 @@ while [[ $# -gt 0 ]]; do
2323
CMAKE_BUILD_TYPE=Debug
2424
shift
2525
;;
26-
-q|--quick)
27-
REBUILD=0
26+
-r|--rebuild)
27+
REBUILD=1
2828
shift
2929
;;
3030
-s|--skip-tests)
@@ -56,7 +56,7 @@ fi
5656

5757
for arch in i686; do
5858
destdir="${PWD}/${CMAKE_BUILD_TYPE}/${arch}"
59-
if [ "${REBUILD}" -eq 1 ]; then
59+
if [ "${REBUILD}" -eq 1 ] || [ ! -e "${destdir}/CMakeCache.txt" ]; then
6060
rm -rf "${destdir}"
6161
cmake -S .. -B "${destdir}" --preset default \
6262
-DFORMAT_SOURCES=ON \

0 commit comments

Comments
 (0)