forked from M-Labs/nac3
1
0
Fork 0

standalone: Add debug flag to run_demo.sh

Allows running demos using the debug build instead of the (default)
release build.
This commit is contained in:
David Mak 2024-01-24 16:54:57 +08:00
parent 9c9756be33
commit af95ba5012
1 changed files with 6 additions and 1 deletions

View File

@ -17,6 +17,9 @@ while [ $# -ge 1 ]; do
--lli) --lli)
use_lli=1 use_lli=1
;; ;;
--debug)
debug=1
;;
*) *)
nac3args+=("$1") nac3args+=("$1")
;; ;;
@ -24,7 +27,9 @@ while [ $# -ge 1 ]; do
shift shift
done done
if [ -e ../../target/release/nac3standalone ]; then if [ -n "$debug" ] && [ -e ../../target/debug/nac3standalone ]; then
nac3standalone=../../target/debug/nac3standalone
elif [ -e ../../target/release/nac3standalone ]; then
nac3standalone=../../target/release/nac3standalone nac3standalone=../../target/release/nac3standalone
else else
# used by Nix builds # used by Nix builds