diff options
Diffstat (limited to 'clang/docs/Modules.rst')
-rw-r--r-- | clang/docs/Modules.rst | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/clang/docs/Modules.rst b/clang/docs/Modules.rst index 96502792613..ed6f8171573 100644 --- a/clang/docs/Modules.rst +++ b/clang/docs/Modules.rst @@ -213,14 +213,8 @@ Command-line parameters ``-fno-implicit-modules`` All modules used by the build must be specified with ``-fmodule-file``. -``-fmodule-file=[<name>=]<file>`` - Specify the mapping of module names to precompiled module files. If the - name is omitted, then the module file is loaded whether actually required - or not. If the name is specified, then the mapping is treated as another - prebuilt module search mechanism (in addition to ``-fprebuilt-module-path``) - and the module is only loaded if required. Note that in this case the - specified file also overrides this module's paths that might be embedded - in other precompiled module files. +``-fmodule-file=<file>`` + Load the given precompiled module file. ``-fprebuilt-module-path=<directory>`` Specify the path to the prebuilt modules. If specified, we will look for modules in this directory for a given top-level module name. We don't need a module map for loading prebuilt modules in this directory and the compiler will not try to rebuild these modules. This can be specified multiple times. @@ -951,3 +945,4 @@ PCHInternals_ .. [#] The preprocessing context in which the modules are parsed is actually dependent on the command-line options provided to the compiler, including the language dialect and any ``-D`` options. However, the compiled modules for different command-line options are kept distinct, and any preprocessor directives that occur within the translation unit are ignored. See the section on the `Configuration macros declaration`_ for more information. .. _PCHInternals: PCHInternals.html + |