Browse Source

Add randomx to build.sh

randomx
Duke Leto 2 years ago
parent
commit
15ca83b817
  1. 18
      zcutil/build.sh

18
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

Loading…
Cancel
Save