build-stack 305 Bytes
Newer Older
joehillen's avatar
joehillen committed
1 2
#!/usr/bin/env bash

3 4 5
# Make sure that the script exits if Hadrian fails to build
set -euo pipefail

6 7
# Make sure Hadrian is up-to-date
cd hadrian
8
stack build --no-library-profiling ${HADRIAN_NIX:+--nix}
joehillen's avatar
joehillen committed
9

10 11 12
# Run Hadrian in the top-level GHC directory
stack exec hadrian -- \
    --directory ".."  \
joehillen's avatar
joehillen committed
13
    "$@"