summaryrefslogtreecommitdiff
path: root/hadrian/build-stack
diff options
context:
space:
mode:
authorXavier Denis <xldenis@gmail.com>2020-02-13 17:52:09 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-02-29 05:07:50 -0500
commita999ee96a22650b59855609f84e2808b4133e9e0 (patch)
treeaf6a76a019dab2f9b8d6428bedcf55d95d1e2e5e /hadrian/build-stack
parent99d2de860ff82e3f626c8b3d47d355ab16d18fd1 (diff)
downloadhaskell-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-xhadrian/build-stack13
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 ".." \
+ "$@"