Skip to content

Commit 3936ac5

Browse files
committed
fix: fix flatc
Signed-off-by: Cocoa <i@uwucocoa.moe>
1 parent 294a544 commit 3936ac5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ LIBCORAL_SRC = $(shell pwd)/c_src/libcoral
2020
PRECOMPILED_ERL_HELPER = $(shell pwd)/tflite_beam_precompiled.erl
2121
UNICODEDATA = $(shell pwd)/unicodedata
2222
UNICODE_DATA = $(PRIV_DIR)/unicode_data.txt
23+
FLATC_PATH ?= $(shell which flatc)
24+
TFLITE_HOST_TOOLS_DIR = $(shell dirname $(FLATC_PATH))
2325
ifdef CMAKE_TOOLCHAIN_FILE
2426
CMAKE_CONFIGURE_FLAGS=-D CMAKE_TOOLCHAIN_FILE="$(CMAKE_TOOLCHAIN_FILE)"
2527
endif
@@ -169,6 +171,7 @@ $(NATIVE_BINDINGS_SO): $(UNICODE_DATA) unarchive_source_code install_libedgetpu_
169171
-D GFLAGS_ROOT_DIR="$(GFLAGS_ROOT_DIR)" \
170172
-D GLOG_ROOT_DIR="$(GLOG_ROOT_DIR)" \
171173
-D TFLITE_BEAM_CORAL_SUPPORT="$(TFLITE_BEAM_CORAL_SUPPORT)" \
174+
-D TFLITE_HOST_TOOLS_DIR="$(TFLITE_HOST_TOOLS_DIR)" \
172175
-D LIBUSB_INSTALL_DIR="$(LIBUSB_INSTALL_DIR)" \
173176
-D MIX_APP_PATH="$(MIX_APP_PATH)" \
174177
$(CMAKE_OPTIONS) \

0 commit comments

Comments
 (0)