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 c711966 commit a81fb74
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions ci/docker/runtime_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2011,6 +2011,9 @@ 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
fi
CMAKE_STATICBUILD=1
source tools/staticbuild/build.sh ${mxnet_variant}
popd
Expand Down
1 change: 0 additions & 1 deletion tools/staticbuild/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ fi
export MAKE="make $ADD_MAKE_FLAG"

if [[ $ARCH == 'aarch64' ]]; then
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
6 changes: 5 additions & 1 deletion tools/staticbuild/build_lib_cmake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ git submodule update --init --recursive || true
# Build libmxnet.so
rm -rf build; mkdir build; cd build
cmake -GNinja -C $cmake_config -DCMAKE_PREFIX_PATH=${DEPS_PATH} -DCMAKE_FIND_ROOT_PATH=${DEPS_PATH} ..
ninja-build
if [[ ! $ARCH == 'aarch64' ]]; then
ninja
else
ninja-build
fi
cd -

# Move to lib
Expand Down

0 comments on commit a81fb74

Please sign in to comment.