Commit 6942b2dc authored by Ben Gamari's avatar Ben Gamari 🐢 Committed by Andrey Mokhov

build.cabal.sh: Use cabal new-run (#435)

The previous approach was terribly unreliable, leading me to waste an hour
debugging #425.
parent 45da08bb
......@@ -46,9 +46,8 @@ if [ "${CABVER[0]}" -eq 2 -o "${CABVER[0]}" -eq 1 -a "${CABVER[1]}" -ge 24 ]; th
# New enough cabal version detected, so
# let's use the superior 'cabal new-build' mode
# there's no 'cabal new-run' yet, but it's easy to emulate
"$CABAL" new-build --disable-profiling --disable-documentation -j exe:hadrian
$(find ./dist-newstyle -type f -name hadrian | head -n 1) \
"$CABAL" new-run -- hadrian \
--lint \
--directory "$absoluteRoot/.." \
"$@"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment