Merge pull request #627 from harmony-ek/honor_hmy_path_if_set

Honor HMY_PATH if set
pull/646/head
Eugene Kim 6 years ago committed by GitHub
commit 5e661d6487
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      scripts/setup_bls_build_flags.sh

@ -6,6 +6,8 @@ case "${0}" in
*) progdir=.;;
esac
case "${HMY_PATH+set}" in
"")
unset -v gopath
gopath=$(go env GOPATH)
# HMY_PATH is the common root directory of all harmony repos
@ -15,6 +17,8 @@ if [ ! -d $HMY_PATH ]; then
# which does not fully dereference symlinks.
HMY_PATH=$(cd $progdir/../.. && env pwd)
fi
;;
esac
: ${OPENSSL_DIR="/usr/local/opt/openssl"}
: ${MCL_DIR="${HMY_PATH}/mcl"}
: ${BLS_DIR="${HMY_PATH}/bls"}

Loading…
Cancel
Save