diff --git a/zcutil/build.sh b/zcutil/build.sh index 012b4d3f1..a5ecda2ca 100755 --- a/zcutil/build.sh +++ b/zcutil/build.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -# Copyright (c) 2016-2021 The Hush developers +# Copyright (c) 2016-2022 The Hush developers # Distributed under the GPLv3 software license, see the accompanying # file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html @@ -108,12 +108,24 @@ HOST="$HOST" BUILD="$BUILD" "$MAKE" "$@" -C ./depends/ V=1 CONFIG_SITE="$PWD/depends/$HOST/share/config.site" ./configure "$HARDENING_ARG" "$LCOV_ARG" "$TEST_ARG" "$MINING_ARG" $CONFIGURE_FLAGS CXXFLAGS='-g' -#BUILD CCLIB - +# Build CryptoConditions stuff WD=$PWD cd src/cc echo $PWD ./makecustom cd $WD +# Build RandomX +cd src/RandomX +if [ -d "build" ] +then + ls -la build/librandomx* +else + mkdir build && cd build + cmake -DARCH=native .. + make +fi + +cd $WD + "$MAKE" "$@" V=1