From 4731cbd94bc702bf0fe4d76158d338e6e549c837 Mon Sep 17 00:00:00 2001 From: Stella Laurenzo Date: Sat, 1 Aug 2020 14:54:20 -0700 Subject: [PATCH] Update install_mlir.sh script for new submodule path. --- build_tools/install_mlir.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/build_tools/install_mlir.sh b/build_tools/install_mlir.sh index 8c9ea9d48..6a7fc3dc2 100755 --- a/build_tools/install_mlir.sh +++ b/build_tools/install_mlir.sh @@ -3,10 +3,7 @@ set -e td="$(realpath $(dirname $0)/..)" # Find LLVM source (assumes it is adjacent to this directory). -if [ -z "$LLVM_SRC_DIR" ]; then - LLVM_SRC_DIR="$td/../llvm-project" -fi -LLVM_SRC_DIR="$(realpath "$LLVM_SRC_DIR")" +LLVM_SRC_DIR="$(realpath "${LLVM_SRC_DIR:-$td/external/llvm-project}")" if ! [ -f "$LLVM_SRC_DIR/llvm/CMakeLists.txt" ]; then echo "Expected LLVM_SRC_DIR variable to be set correctly (got '$LLVM_SRC_DIR')" @@ -42,4 +39,3 @@ cmake -GNinja \ -DLLVM_ENABLE_RTTI=On cmake --build "$build_mlir" --target install -#cmake --build "$build_mlir" --target install