diff --git a/Cabal/Distribution/Simple/GHC.hs b/Cabal/Distribution/Simple/GHC.hs index 37a94ddc55865f7f93ea0751d1aa5aae1de92f4a..70521904ce39fceaba0987a40542d0f59207bf42 100644 --- a/Cabal/Distribution/Simple/GHC.hs +++ b/Cabal/Distribution/Simple/GHC.hs @@ -1573,11 +1573,17 @@ libAbiHash verbosity _pkg_descr lbi lib clbi = do ghcOptInputModules = toNubListR $ exposedModules lib } vanillaArgs = + -- due to a bug in GHC which tries to access the package database + -- in conjunction with data families, backpack and internal libraries + -- we may not modify the package database information. However, + -- we can't bootstrap GHC with this version of Cabal anymore + vanillaArgs0 + -- Package DBs unnecessary, and break ghc-cabal. See #3633 -- BUT, put at least the global database so that 7.4 doesn't -- break. - vanillaArgs0 { ghcOptPackageDBs = [GlobalPackageDB] - , ghcOptPackages = mempty } + -- vanillaArgs0 { ghcOptPackageDBs = [GlobalPackageDB] + -- , ghcOptPackages = mempty } sharedArgs = vanillaArgs `mappend` mempty { ghcOptDynLinkMode = toFlag GhcDynamicOnly, ghcOptFPic = toFlag True,