Add explicit validator-cuda crate (#5985)

This commit is contained in:
Michael Vines
2019-09-19 20:50:34 -07:00
committed by GitHub
parent d379786c90
commit 1d0be265d9
32 changed files with 778 additions and 706 deletions

View File

@@ -35,12 +35,6 @@ if [[ -n $USE_INSTALL || ! -f "$SOLANA_ROOT"/Cargo.toml ]]; then
else
solana_program() {
declare program="$1"
declare features="--features="
if [[ "$program" =~ ^(.*)-cuda$ ]]; then
program=${BASH_REMATCH[1]}
features+="cuda"
fi
declare crate="$program"
if [[ -z $program ]]; then
crate="cli"
@@ -56,7 +50,7 @@ else
maybe_release=--release
fi
declare manifest_path="--manifest-path=$SOLANA_ROOT/$crate/Cargo.toml"
printf "cargo $CARGO_TOOLCHAIN run $manifest_path $maybe_release $maybe_package --bin %s %s -- " "$program" "$features"
printf "cargo $CARGO_TOOLCHAIN run $manifest_path $maybe_release $maybe_package --bin %s %s -- " "$program"
}
fi