summaryrefslogtreecommitdiffstats
path: root/clang/docs/Modules.rst
diff options
context:
space:
mode:
authorManman Ren <manman.ren@gmail.com>2016-08-18 17:42:15 +0000
committerManman Ren <manman.ren@gmail.com>2016-08-18 17:42:15 +0000
commit11f2a477721c416abb3015b0a06d28869211bf3e (patch)
tree3cddfde033f1fa7ff40cec786759a63eb004f59c /clang/docs/Modules.rst
parentc948d182e12c94585e8996b8d432ba6427fdd12c (diff)
downloadbcm5719-llvm-11f2a477721c416abb3015b0a06d28869211bf3e.tar.gz
bcm5719-llvm-11f2a477721c416abb3015b0a06d28869211bf3e.zip
Module: add -fprebuilt-module-path to support loading prebuilt modules.
In this mode, there is no need to load any module map and the programmer can simply use "@import" syntax to load the module directly from a prebuilt module path. When loading from prebuilt module path, we don't support rebuilding of the module files and we ignore compatible configuration mismatches. rdar://27290316 Differential Revision: http://reviews.llvm.org/D23125 llvm-svn: 279096
Diffstat (limited to 'clang/docs/Modules.rst')
-rw-r--r--clang/docs/Modules.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/docs/Modules.rst b/clang/docs/Modules.rst
index 0ea3b5bb377..418765468c2 100644
--- a/clang/docs/Modules.rst
+++ b/clang/docs/Modules.rst
@@ -213,6 +213,9 @@ Command-line parameters
``-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.
+
Module Semantics
================
OpenPOWER on IntegriCloud