summaryrefslogtreecommitdiff
path: root/hadrian/build.stack.sh
blob: 7a45042ebd73c1dd4d58383f8e35968379b1bce4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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 ".."  \
    "$@"