diff options
author | Zubin Duggal <zubin.duggal@gmail.com> | 2022-03-22 18:46:56 +0530 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-03-29 13:07:22 -0400 |
commit | 967dad03566c754ce88388e61678b70eddfee528 (patch) | |
tree | 90769b019412c9b32e8b17d778414dce3fe1312a /hadrian/src | |
parent | 789add55e0f5648981ffba77135b2a525369bf79 (diff) | |
download | haskell-967dad03566c754ce88388e61678b70eddfee528.tar.gz |
hadrian: Build lib:GHC with -haddock and -Winvalid-haddock (#21273)
Diffstat (limited to 'hadrian/src')
-rw-r--r-- | hadrian/src/Settings/Packages.hs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hadrian/src/Settings/Packages.hs b/hadrian/src/Settings/Packages.hs index ffedcce1d4..33ffa91289 100644 --- a/hadrian/src/Settings/Packages.hs +++ b/hadrian/src/Settings/Packages.hs @@ -51,6 +51,9 @@ packageArgs = do [ inputs ["**/GHC.hs", "**/GHC/Driver/Make.hs"] ? arg "-fprof-auto" , input "**/Parser.hs" ? pure ["-fno-ignore-interface-pragmas", "-fcmm-sink"] + -- Enable -haddock and -Winvalid-haddock for the compiler + , arg "-haddock" + , notStage0 ? arg "-Winvalid-haddock" -- These files take a very long time to compile with -O1, -- so we use -O0 for them just in Stage0 to speed up the -- build but not affect Stage1+ executables |