From 96b8c8cbd2853eadafeb60867975f891de94ed7a Mon Sep 17 00:00:00 2001 From: Jesper Stemann Andersen Date: Sun, 6 Feb 2022 15:10:17 +0100 Subject: [PATCH] Added workaround for armv6l-linux and armv7l-linux --- O/onnxruntime/build_tarballs.jl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/O/onnxruntime/build_tarballs.jl b/O/onnxruntime/build_tarballs.jl index dd1cf44719e..aa1ffe8eff0 100644 --- a/O/onnxruntime/build_tarballs.jl +++ b/O/onnxruntime/build_tarballs.jl @@ -35,6 +35,11 @@ if [[ $target == *-w64-mingw32* || $target == aarch64-apple-darwin* ]]; then cp -a $dist_name*/lib/* $libdir install_license $dist_name*/LICENSE else + # Workaround for https://github.com/microsoft/onnxruntime/issues/2152 + if [[ $target == armv6l-linux-gnueabihf* || $target == armv7l-linux-gnueabihf* ]]; then + cmake_extra_defines=onnxruntime_DEV_MODE=OFF + end + cd onnxruntime python3 tools/ci_build/build.py \ --build \ @@ -43,6 +48,7 @@ else --cmake_extra_defines \ CMAKE_INSTALL_PREFIX=$prefix \ CMAKE_TOOLCHAIN_FILE=${CMAKE_TARGET_TOOLCHAIN} \ + $cmake_extra_defines \ --config Release \ --parallel $nproc \ --path_to_protoc_exe $WORKSPACE/srcdir/protoc/bin/protoc \