Support local .a, skip if unable to find .a
This commit is contained in:
parent
bf4b856e0c
commit
b70d730b32
@ -2,11 +2,17 @@
|
|||||||
|
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
: "${libcuda_verify_ed25519_URL:?environment variable undefined}"
|
LIB=libcuda_verify_ed25519.a
|
||||||
|
if [[ ! -r $LIB ]]; then
|
||||||
|
if [[ -z "${libcuda_verify_ed25519_URL:-}" ]]; then
|
||||||
|
echo "$0 skipped. Unable to locate $LIB"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
export LD_LIBRARY_PATH=/usr/local/cuda/lib64
|
export LD_LIBRARY_PATH=/usr/local/cuda/lib64
|
||||||
export PATH=$PATH:/usr/local/cuda/bin
|
export PATH=$PATH:/usr/local/cuda/bin
|
||||||
curl -X GET -o libcuda_verify_ed25519.a "$libcuda_verify_ed25519_URL"
|
curl -X GET -o $LIB "$libcuda_verify_ed25519_URL"
|
||||||
|
fi
|
||||||
|
|
||||||
# shellcheck disable=SC1090 # <-- shellcheck can't follow ~
|
# shellcheck disable=SC1090 # <-- shellcheck can't follow ~
|
||||||
source ~/.cargo/env
|
source ~/.cargo/env
|
||||||
|
Loading…
x
Reference in New Issue
Block a user