From afbf9f5eb09a6a0262a82877f3253e8fbb26464a Mon Sep 17 00:00:00 2001 From: Adam Siemieniuk Date: Tue, 20 Aug 2024 18:32:12 +0200 Subject: [PATCH] Cleanup build dir --- scripts/buildkite/build_llvm.sh | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/scripts/buildkite/build_llvm.sh b/scripts/buildkite/build_llvm.sh index 3d2705997..864bcb195 100755 --- a/scripts/buildkite/build_llvm.sh +++ b/scripts/buildkite/build_llvm.sh @@ -141,6 +141,7 @@ echo "--- BUILD" echo_run ninja -C ${LLVM_BUILD_DIR} all if [ $? != 0 ]; then rm -r ${LLVM_INSTALL_DIR} + rm -r ${LLVM_BUILD_DIR} exit 1 fi @@ -149,14 +150,20 @@ echo "--- CHECK" echo_run ninja -C ${LLVM_BUILD_DIR} check-all if [ $? != 0 ]; then rm -r ${LLVM_INSTALL_DIR} + rm -r ${LLVM_BUILD_DIR} exit 1 fi - # Install LLVM - echo "--- INSTALL" - mkdir -p ${LLVM_INSTALL_DIR} - echo_run ninja -C ${LLVM_BUILD_DIR} install +# Install LLVM +echo "--- INSTALL" +mkdir -p ${LLVM_INSTALL_DIR} +echo_run ninja -C ${LLVM_BUILD_DIR} install if [ $? != 0 ]; then rm -r ${LLVM_INSTALL_DIR} + rm -r ${LLVM_BUILD_DIR} exit 1 fi + +# Cleanup +echo "--- CLEANUP" +rm -r ${LLVM_BUILD_DIR}