-
Notifications
You must be signed in to change notification settings - Fork 238
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cabal fix for ghc-options -fplugin in ghc >=9.6.3
Include haskell/cabal#9384 to fix #2096
- Loading branch information
1 parent
df609c2
commit a0f7e8c
Showing
2 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
diff --git a/libraries/Cabal/Cabal/src/Distribution/Simple/GHC.hs b/libraries/Cabal/Cabal/src/Distribution/Simple/GHC.hs | ||
index 9d653f858..1fbd15318 100644 | ||
--- a/libraries/Cabal/Cabal/src/Distribution/Simple/GHC.hs | ||
+++ b/libraries/Cabal/Cabal/src/Distribution/Simple/GHC.hs | ||
@@ -1861,18 +1861,12 @@ libAbiHash verbosity _pkg_descr lbi lib clbi = do | ||
libBi = libBuildInfo lib | ||
comp = compiler lbi | ||
platform = hostPlatform lbi | ||
- vanillaArgs0 = | ||
+ vanillaArgs = | ||
(componentGhcOptions verbosity lbi libBi clbi (componentBuildDir lbi clbi)) | ||
`mappend` mempty { | ||
ghcOptMode = toFlag GhcModeAbiHash, | ||
ghcOptInputModules = toNubListR $ exposedModules lib | ||
} | ||
- vanillaArgs = | ||
- -- 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 } | ||
sharedArgs = vanillaArgs `mappend` mempty { | ||
ghcOptDynLinkMode = toFlag GhcDynamicOnly, | ||
ghcOptFPic = toFlag True, | ||
diff --git a/libraries/Cabal/Cabal/src/Distribution/Simple/GHCJS.hs b/libraries/Cabal/Cabal/src/Distribution/Simple/GHCJS.hs | ||
index c8721746a..dcd5b3230 100644 | ||
--- a/libraries/Cabal/Cabal/src/Distribution/Simple/GHCJS.hs | ||
+++ b/libraries/Cabal/Cabal/src/Distribution/Simple/GHCJS.hs | ||
@@ -1573,18 +1573,12 @@ libAbiHash verbosity _pkg_descr lbi lib clbi = do | ||
libBi = libBuildInfo lib | ||
comp = compiler lbi | ||
platform = hostPlatform lbi | ||
- vanillaArgs0 = | ||
+ vanillaArgs = | ||
(componentGhcOptions verbosity lbi libBi clbi (componentBuildDir lbi clbi)) | ||
`mappend` mempty { | ||
ghcOptMode = toFlag GhcModeAbiHash, | ||
ghcOptInputModules = toNubListR $ exposedModules lib | ||
} | ||
- vanillaArgs = | ||
- -- 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 } | ||
sharedArgs = vanillaArgs `mappend` mempty { | ||
ghcOptDynLinkMode = toFlag GhcDynamicOnly, | ||
ghcOptFPic = toFlag True, |