diff options
author | Manman Ren <manman.ren@gmail.com> | 2016-08-18 17:42:15 +0000 |
---|---|---|
committer | Manman Ren <manman.ren@gmail.com> | 2016-08-18 17:42:15 +0000 |
commit | 11f2a477721c416abb3015b0a06d28869211bf3e (patch) | |
tree | 3cddfde033f1fa7ff40cec786759a63eb004f59c /clang/lib/Serialization/ModuleManager.cpp | |
parent | c948d182e12c94585e8996b8d432ba6427fdd12c (diff) | |
download | llvm-11f2a477721c416abb3015b0a06d28869211bf3e.zip llvm-11f2a477721c416abb3015b0a06d28869211bf3e.tar.gz llvm-11f2a477721c416abb3015b0a06d28869211bf3e.tar.bz2 |
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/lib/Serialization/ModuleManager.cpp')
-rw-r--r-- | clang/lib/Serialization/ModuleManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Serialization/ModuleManager.cpp b/clang/lib/Serialization/ModuleManager.cpp index 93709c8..bc57d8c 100644 --- a/clang/lib/Serialization/ModuleManager.cpp +++ b/clang/lib/Serialization/ModuleManager.cpp @@ -66,7 +66,7 @@ ModuleManager::addModule(StringRef FileName, ModuleKind Type, // Look for the file entry. This only fails if the expected size or // modification time differ. const FileEntry *Entry; - if (Type == MK_ExplicitModule) { + if (Type == MK_ExplicitModule || Type == MK_PrebuiltModule) { // If we're not expecting to pull this file out of the module cache, it // might have a different mtime due to being moved across filesystems in // a distributed build. The size must still match, though. (As must the |