Update install_mlir.sh script for new submodule path.

pull/2/head
Stella Laurenzo 2020-08-01 14:54:20 -07:00
parent 8402ab6105
commit 4731cbd94b
1 changed files with 1 additions and 5 deletions

View File

@ -3,10 +3,7 @@ set -e
td="$(realpath $(dirname $0)/..)" td="$(realpath $(dirname $0)/..)"
# Find LLVM source (assumes it is adjacent to this directory). # Find LLVM source (assumes it is adjacent to this directory).
if [ -z "$LLVM_SRC_DIR" ]; then LLVM_SRC_DIR="$(realpath "${LLVM_SRC_DIR:-$td/external/llvm-project}")"
LLVM_SRC_DIR="$td/../llvm-project"
fi
LLVM_SRC_DIR="$(realpath "$LLVM_SRC_DIR")"
if ! [ -f "$LLVM_SRC_DIR/llvm/CMakeLists.txt" ]; then if ! [ -f "$LLVM_SRC_DIR/llvm/CMakeLists.txt" ]; then
echo "Expected LLVM_SRC_DIR variable to be set correctly (got '$LLVM_SRC_DIR')" echo "Expected LLVM_SRC_DIR variable to be set correctly (got '$LLVM_SRC_DIR')"
@ -42,4 +39,3 @@ cmake -GNinja \
-DLLVM_ENABLE_RTTI=On -DLLVM_ENABLE_RTTI=On
cmake --build "$build_mlir" --target install cmake --build "$build_mlir" --target install
#cmake --build "$build_mlir" --target install