@@ -46,6 +46,14 @@ done
4646
4747GAUGE_ARGS=$*
4848
49+if test -z "$BENCHMARK"
50+then
51+ BENCHMARK=$DEFAULT_BENCHMARK
52+ echo "Using default benchmark suite [$BENCHMARK], use --benchmark to specify another"
53+else
54+ echo "Using benchmark suite [$BENCHMARK]"
55+fi
56+
4957STACK=stack
5058echo "Using stack command [$STACK]"
5159
@@ -80,13 +88,6 @@ fi
8088# find .stack-work/ -type f -name "benchmarks"
8189
8290find_bench_prog () {
83− if test -z "$BENCHMARK"
84− then
85− BENCHMARK=$DEFAULT_BENCHMARK
86− echo "Using default benchmark suite [$BENCHMARK], use --benchmark to specify another"
87− else
88− echo "Using benchmark suite [$BENCHMARK]"
89− fi
9091 BENCH_PROG=`$STACK path --dist-dir`/build/$BENCHMARK/$BENCHMARK
9192 if test ! -x "$BENCH_PROG"
9293 then