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:
parent
9c9756be33
commit
af95ba5012
@ -17,6 +17,9 @@ while [ $# -ge 1 ]; do
|
||||
--lli)
|
||||
use_lli=1
|
||||
;;
|
||||
--debug)
|
||||
debug=1
|
||||
;;
|
||||
*)
|
||||
nac3args+=("$1")
|
||||
;;
|
||||
@ -24,7 +27,9 @@ while [ $# -ge 1 ]; do
|
||||
shift
|
||||
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
|
||||
else
|
||||
# used by Nix builds
|
||||
|
Loading…
Reference in New Issue
Block a user