From 83dd04452498408c1d46b7282ed08e9f5a1e76a8 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 25 Apr 2024 13:49:07 -0400 Subject: bench: Run make config when building --- bench/bench.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'bench/bench.sh') diff --git a/bench/bench.sh b/bench/bench.sh index e4b5511..1d379ca 100644 --- a/bench/bench.sh +++ b/bench/bench.sh @@ -221,7 +221,8 @@ setup() { fi echo "Building bfs ..." - as-user make -s -j"$nproc" release all + as-user make -s -j"$nproc" RELEASE=y + as-user make -s -j"$nproc" all as-user mkdir -p bench/corpus @@ -253,7 +254,13 @@ setup() { echo "Building bfs $commit ..." cd "$worktree" as-user git checkout -qd "$commit" -- - as-user make -s -j"$nproc" release + ls + if [ -e config ]; then + as-user make -s -j"$nproc" config RELEASE=1 + as-user make -s -j"$nproc" + else + as-user make -s -j"$nproc" release + fi if [ -e ./bin/bfs ]; then as-user cp ./bin/bfs "$bin/bfs-$commit" else -- cgit v1.2.3