diff options
author | Xavier Denis <xldenis@gmail.com> | 2020-02-13 17:52:09 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-02-29 05:07:50 -0500 |
commit | a999ee96a22650b59855609f84e2808b4133e9e0 (patch) | |
tree | af6a76a019dab2f9b8d6428bedcf55d95d1e2e5e /hadrian/build-stack | |
parent | 99d2de860ff82e3f626c8b3d47d355ab16d18fd1 (diff) | |
download | haskell-a999ee96a22650b59855609f84e2808b4133e9e0.tar.gz |
Rename ghci.sh and build.sh to ghci and build respectively
Convert hadrian buildscripts to unsuffixed, dashed form
final cleanups
Diffstat (limited to 'hadrian/build-stack')
-rwxr-xr-x | hadrian/build-stack | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/hadrian/build-stack b/hadrian/build-stack new file mode 100755 index 0000000000..7a45042ebd --- /dev/null +++ b/hadrian/build-stack @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +# Make sure that the script exits if Hadrian fails to build +set -euo pipefail + +# Make sure Hadrian is up-to-date +cd hadrian +stack build --no-library-profiling ${HADRIAN_NIX:+--nix} + +# Run Hadrian in the top-level GHC directory +stack exec hadrian -- \ + --directory ".." \ + "$@" |