Skip to content

Commit

Permalink
Added workaround for armv6l-linux and armv7l-linux
Browse files Browse the repository at this point in the history
  • Loading branch information
stemann committed Feb 6, 2022
1 parent e503ced commit 96b8c8c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions O/onnxruntime/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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 \
Expand Down

0 comments on commit 96b8c8c

Please sign in to comment.