Commit 25e1ea99 authored by Simon Jakobi's avatar Simon Jakobi Committed by Ben Gamari

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
parent 7a3e1b25
......@@ -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].
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment