@@ -162,14 +162,14 @@ run_benches_comparing() {
162 echo "Checking out base commit [$BASE] for benchmarking"
162 echo "Checking out base commit [$BASE] for benchmarking"
163 git checkout "$BASE" || die "Checkout of base commit [$BASE] failed"
163 git checkout "$BASE" || die "Checkout of base commit [$BASE] failed"
165− $STACK build --bench --no-run-benchmarks || die "build failed"
165+ $STACK build $STACK_BUILD_FLAGS --bench --no-run-benchmarks || die "build failed"
166 run_benches "$bench_list"
166 run_benches "$bench_list"
168 echo "Checking out candidate commit [$CANDIDATE] for benchmarking"
168 echo "Checking out candidate commit [$CANDIDATE] for benchmarking"
169 git checkout "$CANDIDATE" || \
169 git checkout "$CANDIDATE" || \
170 die "Checkout of candidate [$CANDIDATE] commit failed"
170 die "Checkout of candidate [$CANDIDATE] commit failed"
172− $STACK build --bench --no-run-benchmarks || die "build failed"
172+ $STACK build $STACK_BUILD_FLAGS --bench --no-run-benchmarks || die "build failed"
173 run_benches "$bench_list"
173 run_benches "$bench_list"
174 # XXX reset back to the original commit
174 # XXX reset back to the original commit
@@ -268,6 +268,11 @@ GAUGE_ARGS=$*
268echo "Using stack command [$STACK]"
268echo "Using stack command [$STACK]"
269set_benchmarks
269set_benchmarks
271+if echo "$BENCHMARKS" | grep -q base
273+ STACK_BUILD_FLAGS="--flag streamly:dev"
271#-----------------------------------------------------------------------------
276#-----------------------------------------------------------------------------
272# Build stuff
277# Build stuff
273#-----------------------------------------------------------------------------
278#-----------------------------------------------------------------------------
@@ -282,7 +287,7 @@ build_report_progs "$BENCHMARKS"
283if test "$MEASURE" = "1"
288if test "$MEASURE" = "1"
285− $STACK build --bench --no-run-benchmarks || die "build failed"
290+ $STACK build $STACK_BUILD_FLAGS --bench --no-run-benchmarks || die "build failed"
286 run_measurements "$BENCHMARKS"
291 run_measurements "$BENCHMARKS"