Hadrian: Generate GHC wrapper scripts
Hadrian: Generate GHC wrapper scripts
This is a temporary workaround for #16534. We generate wrapper scripts <build-root>/ghc-stage1
and <build-root>/ghc-stage2
that can be used to run Stage1 and Stage2 GHCs with the right arguments.
See #16534 and https://mail.haskell.org/pipermail/ghc-devs/2019-April/017511.html.
Here are the generated wrapper scripts:
# ghc-stage1
"_build/stage0/bin/ghc.exe" "-package-db _build/stage1/lib/package.conf.d" "$@"
# ghc-stage2
"_build/stage1/bin/ghc.exe" "$@"
Test plan: Compile Hello World program using ghc-stage1
and ghc-stage2
.