File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,8 @@ ifeq ($(OS),Darwin)
102102 ONNX_OS=osx
103103 ifneq (,$(findstring aarch64,$(shell uname -m)))
104104 ONNX_ARCH=arm64
105+ else ifneq (,$(findstring arm64,$(shell uname -m)))
106+ ONNX_ARCH=arm64
105107 else
106108 ONNX_ARCH=x86_64
107109 endif
@@ -305,7 +307,11 @@ sources/onnxruntime:
305307
306308backend-assets/lib/libonnxruntime.so.1 : backend-assets/lib sources/onnxruntime
307309 cp -rfv sources/onnxruntime/lib/* backend-assets/lib/
310+ ifeq ($(OS ) ,Darwin)
311+ mv backend-assets/lib/libonnxruntime.$(ONNX_VERSION).dylib backend-assets/lib/libonnxruntime.dylib
312+ else
308313 mv backend-assets/lib/libonnxruntime.so.$(ONNX_VERSION) backend-assets/lib/libonnxruntime.so.1
314+ endif
309315
310316# # tiny-dream
311317sources/go-tiny-dream :
You can’t perform that action at this time.
0 commit comments