From 95e629a2e9f8e5de8c9d5595b4506c3c5ee7b4bd Mon Sep 17 00:00:00 2001 From: Kristof Denolf Date: Fri, 10 Nov 2023 15:47:41 -0700 Subject: [PATCH] fix path issues --- utils/build-mlir-aie.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/utils/build-mlir-aie.sh b/utils/build-mlir-aie.sh index 886e224a7e..0d67383667 100755 --- a/utils/build-mlir-aie.sh +++ b/utils/build-mlir-aie.sh @@ -9,9 +9,9 @@ # This script builds mlir-aie given . # Assuming they are all in the same subfolder, it would look like: # -# build-mlir-aie.sh +# build-mlir-aie.sh # -# e.g. build-mlir-aie.sh /scratch/llvm +# e.g. build-mlir-aie.sh /scratch/llvm/build # # - optional, mlir-aie/build dir name, default is 'build' # - optional, mlir-aie/install dir name, default is 'install' @@ -27,9 +27,10 @@ BASE_DIR=`realpath $(dirname $0)/..` CMAKEMODULES_DIR=$BASE_DIR/cmake LLVM_BUILD_DIR=`realpath $1` +echo "LLVM BUILD DIR: $LLVM_BUILD_DIR" -BUILD_DIR=${3:-"build"} -INSTALL_DIR=${4:-"install"} +BUILD_DIR=${2:-"build"} +INSTALL_DIR=${3:-"install"} mkdir -p $BUILD_DIR mkdir -p $INSTALL_DIR @@ -56,6 +57,6 @@ if [ -x "$(command -v ccache)" ]; then CMAKE_CONFIGS="${CMAKE_CONFIGS} -DLLVM_CCACHE_BUILD=ON" fi -cmake $CMAKE_CONFIGS ../llvm 2>&1 | tee cmake.log +cmake $CMAKE_CONFIGS .. 2>&1 | tee cmake.log ninja 2>&1 | tee ninja.log ninja install 2>&1 | tee ninja-install.log