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

Finley McIlwaine (@FinleyMcIlwaine) gitlab at gitlab.haskell.org
Thu Jun 8 13:18:17 UTC 2023



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


Commits:
c69d9798 by Finley McIlwaine at 2023-06-08T07:18:00-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/c69d97986a0901fe79bd311f22a152551c5cf0a8

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/c69d97986a0901fe79bd311f22a152551c5cf0a8
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/20230608/2f3cd6b5/attachment.html>


More information about the ghc-commits mailing list