From a1a455d7523520c9cff0fe8ab9d100ae750e937b Mon Sep 17 00:00:00 2001 From: David Mak Date: Wed, 6 Sep 2023 18:55:38 +0800 Subject: [PATCH] meta: Update run_demo.sh - Allow more than one argument to nac3standalone executable - Abort linking process if standalone executable exits with error --- nac3standalone/demo/run_demo.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nac3standalone/demo/run_demo.sh b/nac3standalone/demo/run_demo.sh index 7734b24..e5525d4 100755 --- a/nac3standalone/demo/run_demo.sh +++ b/nac3standalone/demo/run_demo.sh @@ -15,6 +15,6 @@ else fi rm -f *.o -$nac3standalone $1 -rustc -o demo demo.rs -Crelocation-model=static -Clink-arg=./module.o +$nac3standalone "$@" || exit $? +rustc -o demo demo.rs -Crelocation-model=static -Clink-arg=./module.o || exit $? ./demo