sw:vec_iree: Update iree-import-tflite tool location The tool is installed with other host compiler binaries. Change-Id: I8727b18d658e9a7ab18f8b6498851b03f0da9dd2
diff --git a/cmake/springbok_bytecode_module.cmake b/cmake/springbok_bytecode_module.cmake index 5206397..87ffc12 100644 --- a/cmake/springbok_bytecode_module.cmake +++ b/cmake/springbok_bytecode_module.cmake
@@ -48,7 +48,7 @@ set(_MLIR_SRC "${_RULE_SRC}") string(FIND "${_RULE_SRC}" ".tflite" _IS_TFLITE REVERSE) if(${_IS_TFLITE} GREATER 0) - find_program(IREE_IMPORT_TFLITE_TOOL "iree-import-tflite" REQUIRED) + iree_get_executable_path(IREE_IMPORT_TFLITE_TOOL "iree-import-tflite") set(_MLIR_SRC "${CMAKE_CURRENT_BINARY_DIR}/${_RULE_NAME}.mlir") get_filename_component(_SRC_PATH "${_RULE_SRC}" REALPATH) set(_ARGS "${_SRC_PATH}")
diff --git a/cmake/springbok_c_module.cmake b/cmake/springbok_c_module.cmake index ac61ad0..bb9a53a 100644 --- a/cmake/springbok_c_module.cmake +++ b/cmake/springbok_c_module.cmake
@@ -44,7 +44,7 @@ set(_MLIR_SRC "${_RULE_SRC}") string(FIND "${_RULE_SRC}" ".tflite" _IS_TFLITE REVERSE) if(${_IS_TFLITE} GREATER 0) - find_program(IREE_IMPORT_TFLITE_TOOL "iree-import-tflite" REQUIRED) + iree_get_executable_path(IREE_IMPORT_TFLITE_TOOL "iree-import-tflite") set(_MLIR_SRC "${CMAKE_CURRENT_BINARY_DIR}/${_RULE_NAME}.mlir") get_filename_component(_SRC_PATH "${_RULE_SRC}" REALPATH) set(_ARGS "${_SRC_PATH}")