summaryrefslogtreecommitdiff
path: root/hadrian/build.stack.sh
blob: 1f598431e81e92dc26b0af1aaa2341e2b2f37f43 (plain)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env bash

# 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 ".."  \
    "$@"