From 7ce1b694f7be7fbf6e2d7b7eb0639e61fbe358c6 Mon Sep 17 00:00:00 2001 From: Zubin Duggal Date: Sun, 13 Jun 2021 16:02:06 +0530 Subject: Reinstallable GHC This patch allows ghc and its dependencies to be built using a normal invocation of cabal-install. Each componenent which relied on generated files or additional configuration now has a Setup.hs file. There are also various fixes to the cabal files to satisfy cabal-install. There is a new hadrian command which will build a stage2 compiler and then a stage3 compiler by using cabal. ``` ./hadrian/build build-cabal ``` There is also a new CI job which tests running this command. For the 9.4 release we will upload all the dependent executables to hackage and then end users will be free to build GHC and GHC executables via cabal. There are still some unresolved questions about how to ensure soundness when loading plugins into a reinstalled GHC (#20742) which will be tighted up in due course. Fixes #19896 --- driver/ghci/ghci-wrapper.cabal.in | 1 - 1 file changed, 1 deletion(-) (limited to 'driver') diff --git a/driver/ghci/ghci-wrapper.cabal.in b/driver/ghci/ghci-wrapper.cabal.in index 2616223ada..5a422aab9b 100644 --- a/driver/ghci/ghci-wrapper.cabal.in +++ b/driver/ghci/ghci-wrapper.cabal.in @@ -24,6 +24,5 @@ Executable ghci buildable: False Include-Dirs: ../utils C-Sources: - ghci.c -- the following get copied from ../utils by hadrian getLocation.c isMinTTY.c cwrapper.c -- cgit v1.2.1