diff --git a/python/install-hyperonc.sh b/python/install-hyperonc.sh index f21eaa3d1..640a32272 100755 --- a/python/install-hyperonc.sh +++ b/python/install-hyperonc.sh @@ -24,8 +24,14 @@ while getopts 'u:r:l' opt; do esac done -echo "hyperonc repository URL $HYPERONC_URL" -echo "hyperonc revision $HYPERONC_REV" +echo "hyperonc repository URL: $HYPERONC_URL" +echo "hyperonc revision: $HYPERONC_REV" +# Rust doesn't support building shared libraries under musllinux environment +CMAKE_ARGS="-DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Release" +if test ! -z "$HYPERONC_PREFIX"; then + CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=$HYPERONC_PREFIX" +fi +echo "hyperonc CMake arguments: $CMAKE_ARGS" # This is to build subunit from Conan on CentOS based manylinux images. if test "$AUDITWHEEL_POLICY" = "manylinux2014"; then @@ -50,11 +56,6 @@ git reset --hard FETCH_HEAD mkdir -p ${HOME}/hyperonc/c/build cd ${HOME}/hyperonc/c/build -# Rust doesn't support building shared libraries under musllinux environment -CMAKE_ARGS=-DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Release -if test ! -z "$HYPERONC_PREFIX"; then - CMAKE_ARGS=$CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=$HYPERONC_PREFIX -fi cmake $CMAKE_ARGS .. make make check