diff options
author | Ben Gamari <ben@smart-cactus.org> | 2020-07-21 12:15:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-21 12:15:25 -0400 |
commit | 8a61923802aa10853e557e216a845109d3798480 (patch) | |
tree | f7546fa17e344c4937812fa401f52f3aecf55b5a /haddock-api/src/Haddock.hs | |
parent | 1e7cbc13861e97a42af0bc7d7e56f8b425ba984c (diff) | |
parent | a4c12891cb0e4287213c086d7e3908f262da446b (diff) |
Merge pull request #1214 from hsyl20/wip/hsyl20/hadrian/ncg
Rename hscTarget into backend
Diffstat (limited to 'haddock-api/src/Haddock.hs')
-rw-r--r-- | haddock-api/src/Haddock.hs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/haddock-api/src/Haddock.hs b/haddock-api/src/Haddock.hs index 63ceeb16..526e7d18 100644 --- a/haddock-api/src/Haddock.hs +++ b/haddock-api/src/Haddock.hs @@ -67,6 +67,7 @@ import Text.ParserCombinators.ReadP (readP_to_S) import GHC hiding (verbosity) import GHC.Settings.Config import GHC.Driver.Session hiding (projectVersion, verbosity) +import GHC.Driver.Backend import GHC.Utils.Error import GHC.Unit import GHC.Utils.Panic (handleGhcException) @@ -495,9 +496,9 @@ withGhc' libDir needHieFiles flags ghcActs = runGhc (Just libDir) $ do let extra_opts | needHieFiles = [Opt_WriteHie, Opt_Haddock] | otherwise = [Opt_Haddock] dynflags' = (foldl' gopt_set dynflags extra_opts) - { hscTarget = HscNothing - , ghcMode = CompManager - , ghcLink = NoLink + { backend = NoBackend + , ghcMode = CompManager + , ghcLink = NoLink } flags' = filterRtsFlags flags |