diff --git a/tools/build-debug.sh b/tools/build-debug.sh index ea36b439..85d83455 100755 --- a/tools/build-debug.sh +++ b/tools/build-debug.sh @@ -7,8 +7,7 @@ cd $LUNA_ROOT tools/setup.sh -rm -rf $BUILD_DIR -mkdir $BUILD_DIR +tools/full-clean.sh cmake -S . -B $BUILD_DIR -DMOON_DEBUG_SYMBOLS=ON -G "$CMAKE_GEN" cmake --build $BUILD_DIR diff --git a/tools/full-clean.sh b/tools/full-clean.sh new file mode 100755 index 00000000..e4e03188 --- /dev/null +++ b/tools/full-clean.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +set -e + +source $(dirname $0)/env.sh + +rm -rf $BUILD_DIR +mkdir -p $BUILD_DIR \ No newline at end of file diff --git a/tools/rebuild-iso.sh b/tools/rebuild-iso.sh index 8537e980..a10085cb 100755 --- a/tools/rebuild-iso.sh +++ b/tools/rebuild-iso.sh @@ -7,9 +7,7 @@ cd $LUNA_ROOT tools/setup.sh -cd $BUILD_DIR -$BUILD clean -cd - +tools/full-clean.sh cmake -S . -B $BUILD_DIR -G "$CMAKE_GEN" cmake --build $BUILD_DIR diff --git a/tools/rebuild.sh b/tools/rebuild.sh index cff4de9a..1c3e0316 100755 --- a/tools/rebuild.sh +++ b/tools/rebuild.sh @@ -7,9 +7,7 @@ cd $LUNA_ROOT tools/setup.sh -cd $BUILD_DIR -$BUILD clean -cd - +tools/full-clean.sh cmake -S . -B $BUILD_DIR -G "$CMAKE_GEN" cmake --build $BUILD_DIR \ No newline at end of file