Skip to content
Snippets Groups Projects
Commit c828c427 authored by Kateryna Kostiuk's avatar Kateryna Kostiuk
Browse files

onnx: pass parameter for architecture for macOS

Change-Id: Ib14093d8064ab47b080cc943a80da26d67f5e5a6
parent 5b10dec2
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@ ifdef HAVE_ANDROID
cd $< && cp ./build/Linux/Release/libonnxruntime.so $(PREFIX)/lib/
else
ifdef HAVE_MACOSX
cd $< && sh ./build.sh --config Release --build_shared_lib --parallel --skip_tests
cd $< && sh ./build.sh --config Release --build_shared_lib --parallel --skip_tests --osx_arch $(ARCH)
if [ ! -d "$(PREFIX)/lib/onnxruntime" ] ; then (mkdir $(PREFIX)/lib/onnxruntime) fi
if [ ! -d "$(PREFIX)/lib/onnxruntime/cpu" ] ; then (mkdir $(PREFIX)/lib/onnxruntime/cpu) fi
cd $< && cp ./build/MacOS/Release/libonnxruntime.dylib $(PREFIX)/lib/onnxruntime/cpu/libonnxruntime.dylib
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment