Skip to content

Commit

Permalink
fix path issues
Browse files Browse the repository at this point in the history
  • Loading branch information
denolf committed Nov 10, 2023
1 parent 004d63c commit 95e629a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions utils/build-mlir-aie.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
# This script builds mlir-aie given <llvm dir>.
# Assuming they are all in the same subfolder, it would look like:
#
# build-mlir-aie.sh <llvm dir> <build dir> <install dir>
# build-mlir-aie.sh <llvm build dir> <build dir> <install dir>
#
# e.g. build-mlir-aie.sh /scratch/llvm
# e.g. build-mlir-aie.sh /scratch/llvm/build
#
# <build dir> - optional, mlir-aie/build dir name, default is 'build'
# <install dir> - optional, mlir-aie/install dir name, default is 'install'
Expand All @@ -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
Expand All @@ -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

0 comments on commit 95e629a

Please sign in to comment.