on master help sign in
Use limit-build-mem by default in bench/test scripts
0cfd625Harendra Kumar
benchmark/bench-report/bin/bench-runner.sh+1−1
@@ -466,7 +466,7 @@ MEASURE=1
466GAUGE_ARGS=
466GAUGE_ARGS=
467BUILD_ONCE=0
467BUILD_ONCE=0
468
468
469−CABAL_BUILD_OPTIONS="--flag fusion-plugin "
469+CABAL_BUILD_OPTIONS="--flag fusion-plugin --flag limit-build-mem"
470
470
471#-----------------------------------------------------------------------------
471#-----------------------------------------------------------------------------
472# Read command line
472# Read command line
bin/test.sh+2−1
@@ -49,6 +49,7 @@ COVERAGE=0
49MEASURE=1
49MEASURE=1
50HPC_REPORT_OPTIONS=
50HPC_REPORT_OPTIONS=
51RAW=0
51RAW=0
52+CABAL_BUILD_OPTIONS="--flag limit-build-mem"
52
53
53# XXX add a bisect option
54# XXX add a bisect option
54while test -n "$1"
55while test -n "$1"
@@ -58,7 +59,7 @@ do
58 # options with arguments
59 # options with arguments
59 --targets) shift; TARGETS=$1; shift ;;
60 --targets) shift; TARGETS=$1; shift ;;
60 --with-compiler) shift; CABAL_WITH_COMPILER=$1; shift ;;
61 --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 ;;
62 --hpc-report-options) shift; HPC_REPORT_OPTIONS=$1; shift ;;
63 --hpc-report-options) shift; HPC_REPORT_OPTIONS=$1; shift ;;
63 --rtsopts) shift; RTS_OPTIONS=$1; shift ;;
64 --rtsopts) shift; RTS_OPTIONS=$1; shift ;;
64 # flags
65 # flags