From a0c4bbe6f3cec7ee7b2e8571da3a086abfaf898b Mon Sep 17 00:00:00 2001 From: apio Date: Sun, 4 Dec 2022 11:55:47 +0100 Subject: [PATCH] Make sure to clean CMake cache when rebuilding --- tools/build-debug.sh | 3 +-- tools/full-clean.sh | 7 +++++++ tools/rebuild-iso.sh | 4 +--- tools/rebuild.sh | 4 +--- 4 files changed, 10 insertions(+), 8 deletions(-) create mode 100755 tools/full-clean.sh 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