Forked from
Glasgow Haskell Compiler / GHC
6236 commits behind the upstream repository.
-
As noted by #19589, `stack` is not stateful and therefore must be passed `--nix` on every invocation. Do so. Fixes #19589.
As noted by #19589, `stack` is not stateful and therefore must be passed `--nix` on every invocation. Do so. Fixes #19589.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
build-stack 358 B
#!/usr/bin/env bash
# Make sure that the script exits if Hadrian fails to build
set -euo pipefail
STACK="${STACK:-stack}"
# 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 "${HADRIAN_NIX:+--nix}" -- \
--directory ".." \
"$@"