2015-08-04 16:25:06 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# It would be more usual to use:
|
2015-12-28 18:10:08 +00:00
|
|
|
# export BUILDER=./Setup
|
2015-08-04 16:25:06 +00: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 17:40:00 +00:00
|
|
|
# See https://github.com/haskell/cabal/issues/2777
|
2015-08-04 16:25:06 +00:00
|
|
|
set -e
|
|
|
|
|
|
|
|
# Avoid cabal writing to HOME, and avoid local cabal settings
|
|
|
|
# influencing the build.
|
|
|
|
HOME=$(mktemp -d)
|
|
|
|
export HOME
|
|
|
|
|
|
|
|
cabal "$@"
|