Skip to content

Commit

Permalink
fix: bin dir
Browse files Browse the repository at this point in the history
  • Loading branch information
polvalente committed Jul 16, 2024
1 parent 9d0b4e0 commit 513010e
Showing 1 changed file with 20 additions and 15 deletions.
35 changes: 20 additions & 15 deletions scripts/build_and_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,10 @@ build() {
local IREE_RUNTIME_BUILD_DIR=iree-runtime/$1/build
local IREE_INSTALL_DIR=$(install_dir $1)

if [[ $1 -eq "host" ]]; then
local IREE_HOST_BUILD_DIR=iree-runtime/host-build
local IREE_HOST_INSTALL_DIR=${IREE_HOST_BUILD_DIR}/install
local IREE_HOST_BIN_DIR=${IREE_HOST_BUILD_DIR}/install/bin
else
local IREE_HOST_BIN_DIR=iree-runtime/host-build/install/bin
fi
local IREE_HOST_BUILD_DIR=iree-runtime/host-build
local IREE_HOST_INSTALL_DIR=${IREE_HOST_BUILD_DIR}/install
local IREE_HOST_BIN_DIR=${IREE_HOST_BUILD_DIR}/install/bin
local IREE_HOST_BIN_DIR=iree-runtime/host-build/install/bin

echo "IREE_CMAKE_BUILD_DIR: $IREE_CMAKE_BUILD_DIR"
echo "IREE_RUNTIME_BUILD_DIR: $IREE_RUNTIME_BUILD_DIR"
Expand All @@ -61,14 +58,22 @@ build() {
echo "IREE_HOST_INSTALL_DIR: $IREE_HOST_INSTALL_DIR"
echo "IREE_HOST_BUILD_DIR: $IREE_HOST_BUILD_DIR"

make ${NUM_JOBS} install_runtime \
IREE_GIT_REV=$(mix iree.version) \
IREE_INSTALL_DIR=${IREE_INSTALL_DIR} \
IREE_CMAKE_BUILD_DIR=${IREE_CMAKE_BUILD_DIR} \
IREE_RUNTIME_BUILD_DIR=${IREE_RUNTIME_BUILD_DIR} \
IREE_BUILD_TARGET=$1

echo $IREE_INSTALL_DIR
if [[ $1 -eq "host" ]]; then
make ${NUM_JOBS} install_runtime \
IREE_GIT_REV=$(mix iree.version) \
IREE_INSTALL_DIR=${IREE_INSTALL_DIR} \
IREE_CMAKE_BUILD_DIR=${IREE_CMAKE_BUILD_DIR} \
IREE_RUNTIME_BUILD_DIR=${IREE_RUNTIME_BUILD_DIR} \
IREE_BUILD_TARGET=$1
else
make ${NUM_JOBS} install_runtime \
IREE_GIT_REV=$(mix iree.version) \
IREE_INSTALL_DIR=${IREE_INSTALL_DIR} \
IREE_HOST_BIN_DIR=${IREE_HOST_BIN_DIR} \
IREE_CMAKE_BUILD_DIR=${IREE_CMAKE_BUILD_DIR} \
IREE_RUNTIME_BUILD_DIR=${IREE_RUNTIME_BUILD_DIR} \
IREE_BUILD_TARGET=$1
fi
}

if $build_host_flag; then
Expand Down

0 comments on commit 513010e

Please sign in to comment.