From 5c0edd9b69abe766cefe5662d5f5efd67e62e276 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Thu, 22 Oct 2020 13:34:20 -0700 Subject: [PATCH] "make clean" needs to clear out build and output paths It previously did not. Also, try -not- to clean out google test if the build dir doesn't even exist --- bin/kaleidoscope-builder | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/kaleidoscope-builder b/bin/kaleidoscope-builder index 14878f7d..38769529 100755 --- a/bin/kaleidoscope-builder +++ b/bin/kaleidoscope-builder @@ -512,12 +512,16 @@ decompile () { } clean () { + find_sketch + build_paths rm -rf -- "${OUTPUT_PATH}" + rm -rf -- "${BUILD_PATH}" kaleidoscope_dir="$(dirname "$0")/.." - (install -d "${kaleidoscope_dir}/testing/googletest/build" && - cd "${kaleidoscope_dir}/testing/googletest/build" && + if [ -d "${kaleidoscope_dir}/testing/googletest/build" ]; then + ( cd "${kaleidoscope_dir}/testing/googletest/build" && cmake .. && make clean) + fi } reset_device() {