forked from M-Labs/nac3
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)
|
--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
|
||||||
|
|
Loading…
Reference in New Issue