diff options
author | Simon Jakobi <simon.jakobi@gmail.com> | 2018-07-26 17:17:17 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2018-07-27 11:40:42 -0400 |
commit | 25e1ea997524b1d9f9b1fc065b17e618b8f16f18 (patch) | |
tree | b44cb48d72d5bdb4fe8aad08a88911deb12ea437 /mk | |
parent | 7a3e1b25ff9a570851a59c4cf3600daa49867b9b (diff) | |
download | haskell-25e1ea997524b1d9f9b1fc065b17e618b8f16f18.tar.gz |
Make :doc work for the ghc library
We already include -haddock in the GhcLibHcOpts in order to include
the boot libraries' docs in their .hi-files.
By including -haddock in the GhcStage2HcOpts and GhcStage3HcOpts, we
make the docs for the ghc library also available to the GHCi :doc
command.
Reviewers: bgamari
Reviewed By: bgamari
Subscribers: rwbarton, thomie, carter
Differential Revision: https://phabricator.haskell.org/D4913
Diffstat (limited to 'mk')
-rw-r--r-- | mk/config.mk.in | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mk/config.mk.in b/mk/config.mk.in index c97f5517c3..90579fbec2 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -66,9 +66,12 @@ GhcHcOpts=-Rghc-timing # override options from $(GhcHcOpts). # # See Note [Stage number in build variables]. +# +# -haddock is needed so the GHCi :doc command can find docs +# in the .hi-files for the ghc library GhcStage1HcOpts= -GhcStage2HcOpts=-O2 -GhcStage3HcOpts=-O2 +GhcStage2HcOpts=-O2 -haddock +GhcStage3HcOpts=-O2 -haddock # Note [Stage number in build variables]. |