summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDavid Eichmann <EichmannD@gmail.com>2019-04-09 13:17:34 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-05-21 16:57:37 -0400
commit8fc654c3a00ab0cd842c3e8316f832170ea561d6 (patch)
treecb8e052c93d2709411d2b05760790953735bf1c2 /docs
parent54095bbd3a5481e906b05c80ea68841165c7a2b3 (diff)
downloadhaskell-8fc654c3a00ab0cd842c3e8316f832170ea561d6.tar.gz
Include CPP preprocessor dependencies in -M output
Issue #16521
Diffstat (limited to 'docs')
-rw-r--r--docs/users_guide/separate_compilation.rst14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/users_guide/separate_compilation.rst b/docs/users_guide/separate_compilation.rst
index d591736ed4..c8a816ccd1 100644
--- a/docs/users_guide/separate_compilation.rst
+++ b/docs/users_guide/separate_compilation.rst
@@ -1425,6 +1425,20 @@ generation are:
imported by the home package module. This option is normally only
used by the various system libraries.
+.. ghc-flag:: -include-cpp-deps
+ :shortdesc: Include preprocessor dependencies
+ :type: dynamic
+ :category:
+
+ Output preprocessor dependencies. This only has an effect when the CPP
+ language extension is enabled. These dependencies are files included with
+ the ``#include`` preprocessor directive (as well as transitive includes) and
+ implicitly included files such as standard c preprocessor headers and a GHC
+ version header. One exception to this is that GHC generates a temporary
+ header file (during compilation) containing package version macros. As this
+ is only a temporary file that GHC will always generate, it is not output as
+ a dependency.
+
.. _orphan-modules:
Orphan modules and instance declarations