on master help sign in
Use limit-build-mem by default in bench/test scripts

Otherwise we may accidentally run into memory hog issues.

commit0cfd6251c1a3bfe5f5f52976cdc79509a707ff7b authorHarendra Kumar <harendra@composewell.com> dateThu 2 Sep 2021, 15:20 (5 years ago) parent8d93967
2 files changed+3−2
benchmark/bench-report/bin/bench-runner.sh+1−1 bin/test.sh+2−1
benchmark/bench-report/bin/bench-runner.sh+1−1
@@ -466,7 +466,7 @@ MEASURE=1
466466GAUGE_ARGS=
467467BUILD_ONCE=0
468468
469−CABAL_BUILD_OPTIONS="--flag fusion-plugin "
469+CABAL_BUILD_OPTIONS="--flag fusion-plugin --flag limit-build-mem"
470470
471471#-----------------------------------------------------------------------------
472472# Read command line
bin/test.sh+2−1
@@ -49,6 +49,7 @@ COVERAGE=0
4949MEASURE=1
5050HPC_REPORT_OPTIONS=
5151RAW=0
52+CABAL_BUILD_OPTIONS="--flag limit-build-mem"
5253
5354# XXX add a bisect option
5455while test -n "$1"
@@ -58,7 +59,7 @@ do
5859 # options with arguments
5960 --targets) shift; TARGETS=$1; shift ;;
6061 --with-compiler) shift; CABAL_WITH_COMPILER=$1; shift ;;
61− --cabal-build-options) shift; CABAL_BUILD_OPTIONS=$1; shift ;;
62+ --cabal-build-options) shift; CABAL_BUILD_OPTIONS+=$1; shift ;;
6263 --hpc-report-options) shift; HPC_REPORT_OPTIONS=$1; shift ;;
6364 --rtsopts) shift; RTS_OPTIONS=$1; shift ;;
6465 # flags