2015-08-04 12:25:06 -04:00
|
|
|
#!/bin/sh
|
|
|
|
# It would be more usual to use:
|
2015-12-28 14:10:08 -04:00
|
|
|
# export BUILDER=./Setup
|
2015-08-04 12:25:06 -04:00
|
|
|
# But Setup currently has a very bad dependency resolver, and very bad
|
|
|
|
# debugging output, and tends to eat all memory and die on small buildds.
|
2015-12-28 13:40:00 -04:00
|
|
|
# See https://github.com/haskell/cabal/issues/2777
|
2015-08-04 12:25:06 -04:00
|
|
|
set -e
|
|
|
|
|
|
|
|
# Avoid cabal writing to HOME, and avoid local cabal settings
|
|
|
|
# influencing the build.
|
|
|
|
HOME=$(mktemp -d)
|
|
|
|
export HOME
|
|
|
|
|
|
|
|
cabal "$@"
|