Update the rest of the scripts to work with relative paths.

This commit is contained in:
Tom Alexander
2023-09-08 21:50:32 -04:00
parent 21c60d1036
commit d1fe2f6b09
5 changed files with 11 additions and 17 deletions

View File

@@ -4,10 +4,10 @@ set -euo pipefail
IFS=$'\n\t'
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$DIR/../"
RUSTFLAGS="-C opt-level=0" cargo build --no-default-features
valgrind --tool=callgrind --callgrind-out-file=callgrind.out target/debug/parse "${@}"
(cd "$DIR/../" && RUSTFLAGS="-C opt-level=0" cargo build --no-default-features)
valgrind --tool=callgrind --callgrind-out-file="$DIR/../callgrind.out" "$DIR/../target/debug/parse" "${@}"
echo "You probably want to run:"
echo "callgrind_annotate --auto=yes callgrind.out"
echo "callgrind_annotate --auto=yes '$DIR/../callgrind.out'"