Skip to content

Commit

Permalink
search for mlir-opt inside dir
Browse files Browse the repository at this point in the history
  • Loading branch information
rengolin committed Feb 13, 2024
1 parent 20b7f71 commit 2e65f96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/buildkite/check_llvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ LLVM_VERSION=$(llvm_version)
LLVM_INSTALL_DIR=${LLVMROOT}/${LLVM_VERSION}
LLVM_INSTALL_DIR=$(add_device_extensions ${LLVM_INSTALL_DIR} ${GPU})

if [ -d "${LLVM_INSTALL_DIR}" ]; then
if [ -f "${LLVM_INSTALL_DIR}/bin/mlir-opt" ]; then
echo "Found $LLVM_VERSION"
exit 0
else
echo "Not Found ${LLVM_INSTALL_DIR}"
echo "Not Found 'mlir-opt' in ${LLVM_INSTALL_DIR}"
fi

# LLVM not found.
Expand Down

0 comments on commit 2e65f96

Please sign in to comment.