Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
create symlink for ninja
Browse files Browse the repository at this point in the history
  • Loading branch information
mseth10 committed Jul 3, 2021
1 parent fa47499 commit 92c235b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 4 additions & 0 deletions ci/docker/runtime_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2011,6 +2011,10 @@ build_static_libmxnet() {
set -ex
pushd .
local mxnet_variant=${1:?"This function requires a python command as the first argument"}
if [[ ${mxnet_variant} = aarch64_cpu ]]; then
source /opt/rh/devtoolset-10/enable
sudo ln -sf /bin/ninja-build /bin/ninja
fi
CMAKE_STATICBUILD=1
source tools/staticbuild/build.sh ${mxnet_variant}
popd
Expand Down
2 changes: 0 additions & 2 deletions tools/staticbuild/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ fi
export MAKE="make $ADD_MAKE_FLAG"

if [[ $ARCH == 'aarch64' ]]; then
ln -sf /bin/ninja-build /bin/ninja
source /opt/rh/devtoolset-10/enable
export CC="gcc -fPIC -moutline-atomics"
export CXX="g++ -fPIC -moutline-atomics"
export PKG_CONFIG_PATH=$DEPS_PATH/lib/pkgconfig:$DEPS_PATH/lib64/pkgconfig:$DEPS_PATH/lib/aarch64-linux-gnu/pkgconfig:$PKG_CONFIG_PATH
Expand Down

0 comments on commit 92c235b

Please sign in to comment.