Skip to content

Commit d7b43d1

Browse files
committed
fix: host runtime build
1 parent edd163f commit d7b43d1

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.github/workflows/embedded_devices.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ jobs:
7272
if: steps.cache-iree-dir.outputs.cache-hit != 'true'
7373
run: make clone_iree
7474
- name: Compile Host
75-
run: ./scripts/build_and_package.sh --target=host
75+
run: BUILD_IREE_RUNTIME=true ./scripts/build_and_package.sh --target=host
7676
- name: Compile
77-
run: ./scripts/build_and_package.sh --target=${{ matrix.build_target }}
77+
run: BUILD_IREE_RUNTIME=false ./scripts/build_and_package.sh --target=${{ matrix.build_target }}
7878
- name: Release Artifacts
7979
uses: softprops/action-gh-release@v2
8080
if: startsWith(github.ref, 'refs/tags/')

.github/workflows/precompiled_nif.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
NX_IREE_PREFER_PRECOMPILED: false
1818
NX_IREE_SOURCE_DIR: ./build-cache/iree
1919
IREE_GIT_REV: candidate-20240604.914
20+
BUILD_IREE_RUNTIME: false
2021
strategy:
2122
fail-fast: false
2223
matrix:
@@ -112,7 +113,7 @@ jobs:
112113
- name: Setup cmake
113114
uses: jwlawson/actions-setup-cmake@v2
114115
with:
115-
cmake-version: '3.21.x'
116+
cmake-version: "3.21.x"
116117

117118
- name: checkout
118119
uses: actions/checkout@v4

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ $(IREE_INSTALL_DIR): $(NX_IREE_SOURCE_DIR) $(CMAKE_SOURCES)
109109
cmake --install $(IREE_CMAKE_BUILD_DIR) --config $(IREE_CMAKE_CONFIG) --prefix $(IREE_INSTALL_DIR)
110110

111111
.PHONY: iree_host
112-
ifeq ($(IREE_BUILD_TARGET), host)
112+
ifeq ($(BUILD_IREE_RUNTIME), true)
113113
iree_host:
114114
@echo "Building IREE runtime host binaries at $(IREE_HOST_BUILD_DIR)."
115115
cmake -G Ninja -B $(IREE_HOST_BUILD_DIR) \
@@ -120,7 +120,7 @@ iree_host:
120120
cmake --build $(IREE_HOST_BUILD_DIR) --target install
121121
else
122122
iree_host:
123-
@echo "No host build directory specified. Skipping."
123+
@echo "Not building IREE runtime host binaries. Skipping."
124124
endif
125125

126126
### NxIREE Runtime NIF library

0 commit comments

Comments
 (0)