meta: Update run_demo.sh

- Allow more than one argument to nac3standalone executable
- Abort linking process if standalone executable exits with error
David Mak 2023-09-06 18:55:38 +08:00
parent 98736fe310
commit a1a455d752
1 changed files with 2 additions and 2 deletions

View File

@ -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