summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2021-04-02 09:41:07 -0400
committerBen Gamari <ben@smart-cactus.org>2021-04-02 09:41:07 -0400
commit235f63c46176f52f7f014453635fb2c78ca8c2ae (patch)
treefa74c3d8d68e26636cd54dc6ef2c3b6a895c477f
parentce706faeef3964116c6e1dd0e6ae2f2e77fde57d (diff)
downloadhaskell-wip/T19589.tar.gz
hadrian: Fix build-stack-nixwip/T19589
As noted by #19589, `stack` is not stateful and therefore must be passed `--nix` on every invocation. Do so. Fixes #19589.
-rwxr-xr-xhadrian/build-stack4
1 files changed, 2 insertions, 2 deletions
diff --git a/hadrian/build-stack b/hadrian/build-stack
index da069e3575..68f2e31127 100755
--- a/hadrian/build-stack
+++ b/hadrian/build-stack
@@ -7,9 +7,9 @@ STACK="${STACK:-stack}"
# Make sure Hadrian is up-to-date
cd hadrian
-$STACK build --no-library-profiling ${HADRIAN_NIX:+--nix}
+$STACK build --no-library-profiling "${HADRIAN_NIX:+--nix}"
# Run Hadrian in the top-level GHC directory
-$STACK exec hadrian -- \
+$STACK exec hadrian "${HADRIAN_NIX:+--nix}" -- \
--directory ".." \
"$@"