[Git][ghc/ghc][wip/no-stub-dir-include] Include -haddock in DynFlags fingerprint

Finley McIlwaine (@FinleyMcIlwaine) gitlab at gitlab.haskell.org
Tue Jun 6 20:21:22 UTC 2023



Finley McIlwaine pushed to branch wip/no-stub-dir-include at Glasgow Haskell Compiler / GHC


Commits:
e7c862d0 by Finley McIlwaine at 2023-06-06T14:20:58-06:00
Include -haddock in DynFlags fingerprint

The -haddock flag determines whether or not the resulting .hi files
contain haddock documentation strings. If the existing .hi files do
not contain haddock documentation strings and the user requests them,
we should recompile.

- - - - -


1 changed file:

- compiler/GHC/Iface/Recomp/Flags.hs


Changes:

=====================================
compiler/GHC/Iface/Recomp/Flags.hs
=====================================
@@ -67,7 +67,10 @@ fingerprintDynFlags hsc_env this_mod nameio =
         ticky =
           map (`gopt` dflags) [Opt_Ticky, Opt_Ticky_Allocd, Opt_Ticky_LNE, Opt_Ticky_Dyn_Thunk, Opt_Ticky_Tag]
 
-        flags = ((mainis, safeHs, lang, cpp), (paths, prof, ticky, debugLevel, callerCcFilters))
+        -- Haddock
+        haddock = Opt_Haddock `gopt` dflags
+
+        flags = ((mainis, safeHs, lang, cpp), (paths, prof, ticky, haddock, debugLevel, callerCcFilters))
 
     in -- pprTrace "flags" (ppr flags) $
        computeFingerprint nameio flags



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/e7c862d0959d47e46c1b9edea2833b3b15678f91

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/e7c862d0959d47e46c1b9edea2833b3b15678f91
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20230606/e1f2b81e/attachment.html>


More information about the ghc-commits mailing list