Skip to content

Commit

Permalink
update build script
Browse files Browse the repository at this point in the history
  • Loading branch information
oov committed Feb 4, 2024
1 parent e32c220 commit 8d0a363
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build.bash
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ cd build/tools

cd ..

REBUILD=1
REBUILD=0
SKIP_TESTS=0
CREATE_ZIP=0
CMAKE_BUILD_TYPE=Release
Expand All @@ -23,8 +23,8 @@ while [[ $# -gt 0 ]]; do
CMAKE_BUILD_TYPE=Debug
shift
;;
-q|--quick)
REBUILD=0
-r|--rebuild)
REBUILD=1
shift
;;
-s|--skip-tests)
Expand Down Expand Up @@ -56,7 +56,7 @@ fi

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

0 comments on commit 8d0a363

Please sign in to comment.