Add DEBUG= flag to select debug binaries

This commit is contained in:
Michael Vines
2018-06-27 10:05:18 -07:00
committed by Grimes
parent 2f42658cd4
commit ee200d8fa0

View File

@ -30,7 +30,10 @@ else
program=${BASH_REMATCH[1]} program=${BASH_REMATCH[1]}
features="--features=cuda,erasure" features="--features=cuda,erasure"
fi fi
printf "cargo run --release --bin solana-%s %s -- " "$program" "$features" if [[ -z "$DEBUG" ]]; then
maybe_release=--release
fi
printf "cargo run $maybe_release --bin solana-%s %s -- " "$program" "$features"
} }
fi fi