File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -20,15 +20,15 @@ jobs:
2020 cc_version : ' 8'
2121 cxx_version : ' 8'
2222 arch : arm-linux-gnueabihf
23- ld_symlink_name : ld-linux-armhf.so.3
23+ symlink_workaround : true
2424 build_opts : --arm --cmake_extra_defines CMAKE_SYSTEM_NAME=Linux CMAKE_SYSTEM_PROCESSOR=armv7l --config Release --parallel --update --build --build_shared_lib
2525 result_dir : build/Linux/Release
2626 - artifact_name : onnxruntime-linux-arm64-cpu
2727 os : ubuntu-20.04
2828 cc_version : ' 8'
2929 cxx_version : ' 8'
3030 arch : aarch64-linux-gnu
31- ld_symlink_name : ld-linux-aarch64.so.1
31+ symlink_workaround : true
3232 build_opts : --arm64 --cmake_extra_defines CMAKE_SYSTEM_NAME=Linux CMAKE_SYSTEM_PROCESSOR=aarch64 --config Release --parallel --update --build --build_shared_lib
3333 result_dir : build/Linux/Release
3434
9292 echo 'string(APPEND CMAKE_CXX_FLAGS " -latomic")' >> cmake/CMakeLists.txt
9393
9494 # Prevent Exec Format Error during cross-compiling
95- if [ -n " ${{ matrix.ld_symlink_name }}" ] ; then
96- sudo ln -s /usr/${{ matrix.arch }}/lib / lib/${{ matrix.arch }}
97- sudo ln -s /lib /${{ matrix.arch }}/ld-*.so / lib/${{ matrix.ld_symlink_name }}
95+ if ${{ matrix.symlink_workaround }}; then
96+ find /usr/${{ matrix.arch }}/lib -name '*.so*' -exec sudo ln -s {} /usr/ lib/${{ matrix.arch }}/ ';'
97+ sudo ln -s /usr /${{ matrix.arch }}/lib/ ld-linux- *.so* /usr/ lib/
9898 fi
9999
100100 - name : Build ONNX Runtime
You can’t perform that action at this time.
0 commit comments