summaryrefslogtreecommitdiff
path: root/ghc/ghc-bin.cabal.in
diff options
context:
space:
mode:
authorZubin Duggal <zubin.duggal@gmail.com>2021-06-13 16:02:06 +0530
committerMatthew Pickering <matthewtpickering@gmail.com>2022-02-21 11:18:58 +0000
commit7ce1b694f7be7fbf6e2d7b7eb0639e61fbe358c6 (patch)
tree9e6ff5ac7982e9d22987f551a531d0f034ec942c /ghc/ghc-bin.cabal.in
parent2f0ceecc42789558c648c6dcff431d3c8ac3aa46 (diff)
downloadhaskell-7ce1b694f7be7fbf6e2d7b7eb0639e61fbe358c6.tar.gz
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
Diffstat (limited to 'ghc/ghc-bin.cabal.in')
-rw-r--r--ghc/ghc-bin.cabal.in6
1 files changed, 2 insertions, 4 deletions
diff --git a/ghc/ghc-bin.cabal.in b/ghc/ghc-bin.cabal.in
index 139ef0196b..8a9178a183 100644
--- a/ghc/ghc-bin.cabal.in
+++ b/ghc/ghc-bin.cabal.in
@@ -14,8 +14,6 @@ Description:
This package contains the @ghc@ executable, the user facing front-end
to the Glasgow Haskell Compiler.
Category: Development
-Data-Dir: ..
-Data-Files: settings
Build-Type: Simple
Cabal-Version: >=1.10
@@ -46,8 +44,8 @@ Executable ghc
filepath >= 1 && < 1.5,
containers >= 0.5 && < 0.7,
transformers == 0.5.*,
- ghc-boot == @ProjectVersionMunged@,
- ghc == @ProjectVersionMunged@
+ ghc-boot == @ProjectVersionMunged@,
+ ghc == @ProjectVersionMunged@
if os(windows)
Build-Depends: Win32 >= 2.3 && < 2.13