Add DEBUG= flag to select debug binaries
This commit is contained in:
parent
2f42658cd4
commit
ee200d8fa0
|
@ -30,7 +30,10 @@ else
|
|||
program=${BASH_REMATCH[1]}
|
||||
features="--features=cuda,erasure"
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue