]> granicus.if.org Git - clang/commit
Module: add -fprebuilt-module-path to support loading prebuilt modules.
authorManman Ren <manman.ren@gmail.com>
Thu, 18 Aug 2016 17:42:15 +0000 (17:42 +0000)
committerManman Ren <manman.ren@gmail.com>
Thu, 18 Aug 2016 17:42:15 +0000 (17:42 +0000)
commit8c1ac8c45269c6ed3d539b8e5278aa82dc97b3ed
treeee166a1de8e6c9c6a8cc2e83e2f23a2c96da427f
parent8dceb4d4cce03cbbf09f2bab0b53f37b45e3a2b8
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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@279096 91177308-0d34-0410-b5e6-96231b3b80d8
19 files changed:
docs/Modules.rst
include/clang/Basic/DiagnosticCommonKinds.td
include/clang/Driver/Options.td
include/clang/Lex/HeaderSearch.h
include/clang/Lex/HeaderSearchOptions.h
include/clang/Serialization/Module.h
lib/Driver/Tools.cpp
lib/Frontend/ASTUnit.cpp
lib/Frontend/CompilerInstance.cpp
lib/Frontend/CompilerInvocation.cpp
lib/Frontend/FrontendActions.cpp
lib/Lex/HeaderSearch.cpp
lib/Serialization/ASTReader.cpp
lib/Serialization/ASTReaderDecl.cpp
lib/Serialization/ModuleManager.cpp
test/Driver/modules.m
test/Modules/Inputs/prebuilt-module/a.h [new file with mode: 0644]
test/Modules/Inputs/prebuilt-module/module.modulemap [new file with mode: 0644]
test/Modules/prebuilt-module.m [new file with mode: 0644]