Fix manifest path for cargo commands (#3549)

This commit is contained in:
Sagar Dhawan 2019-03-28 15:56:08 -07:00 committed by GitHub
parent 15b945a652
commit c61bb16fdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -42,7 +42,8 @@ else
if [[ -n $NDEBUG ]]; then
maybe_release=--release
fi
printf "cargo run $maybe_release $maybe_package --bin solana-%s %s -- " "$program" "$features"
declare manifest_path="--manifest-path=$program/Cargo.toml"
printf "cargo run $manifest_path $maybe_release $maybe_package --bin solana-%s %s -- " "$program" "$features"
}
if [[ -n $SOLANA_CUDA ]]; then
# shellcheck disable=2154 # 'here' is referenced but not assigned