Skip to content

Commit

Permalink
Cleanup build dir
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-smnk committed Aug 20, 2024
1 parent 85e1048 commit afbf9f5
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions scripts/buildkite/build_llvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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}

0 comments on commit afbf9f5

Please sign in to comment.