update build.sh and CONTRIBUTING.md

This commit is contained in:
jahway603
2022-07-15 11:43:05 -04:00
parent 9806119366
commit ff37b7a1ec
3 changed files with 9 additions and 3 deletions

View File

@@ -5,6 +5,12 @@
set -eu -o pipefail
# Check if cmake, a new dependency for randomx support, is installed on system and exits if it is not
if ! [ -x "$(command -v cmake)" ]; then
echo 'Error: cmake is not installed. Install cmake and try again.' >&2
exit 1
fi
function cmd_pref() {
if type -p "$2" > /dev/null; then
eval "$1=$2"