Skip to content

Commit 9c7a893

Browse files
committed
Fix build-with-scan
1 parent b30d70d commit 9c7a893

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

scripts/kani-std-analysis/std-analysis.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,12 @@ else
4242
fi
4343

4444
# Get Kani root
45-
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
46-
KANI_DIR=$(dirname "$SCRIPT_DIR")
45+
if [[ $# -ne 1 ]]
46+
then
47+
echo "Required command-line argument <KANI-DIR> missing"
48+
exit 1
49+
fi
50+
KANI_DIR=$1
4751

4852
echo "-------------------------------------------------------"
4953
echo "-- Starting analysis of the Rust standard library... --"

scripts/run-kani.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ main() {
304304
"$kani_path" list -Z list $unstable_args ./library --std --format json
305305
pushd scripts/kani-std-analysis
306306
echo "Running Kani's std-analysis command..."
307-
./std-analysis.sh
307+
./std-analysis.sh $build_dir
308308
pip install -r requirements.txt
309309
echo "Computing Kani-specific metrics..."
310310
./kani_std_analysis.py --kani-list-file $current_dir/kani-list.json

0 commit comments

Comments
 (0)