Skip to content

Commit

Permalink
Bump LLVM (#967)
Browse files Browse the repository at this point in the history
Improves CI script to handle errors at the build configuration step.
  • Loading branch information
adam-smnk authored Sep 13, 2024
1 parent 0abc286 commit 8018f3f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build_tools/llvm_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2641ed7d26198557a63ce447a0584a96494a5ac4
bf684034844c660b778f0eba103582f582b710c9
10 changes: 10 additions & 0 deletions scripts/buildkite/build_llvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,12 @@ echo_run cmake -Wno-dev -G Ninja \
-DCMAKE_INSTALL_PREFIX=${LLVM_INSTALL_DIR} \
${LLVM_BUILD_EXTENSIONS}

if [ $? != 0 ]; then
rm -r ${LLVM_INSTALL_DIR}
rm -r ${LLVM_BUILD_DIR}
exit 1
fi

# Build LLVM
echo "--- BUILD"
echo_run ninja -C ${LLVM_BUILD_DIR} all
Expand Down Expand Up @@ -167,3 +173,7 @@ fi
# Cleanup
echo "--- CLEANUP"
rm -r ${LLVM_BUILD_DIR}
if [ $? != 0 ]; then
echo "Failed to cleanup"
exit 1
fi

0 comments on commit 8018f3f

Please sign in to comment.