-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path04-turn-on-interface-compilation-fallback-on-stdlib.patch
29 lines (28 loc) · 1.68 KB
/
04-turn-on-interface-compilation-fallback-on-stdlib.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Remove block of code that is turning off auto-compilation of stdlib `.swiftinterface`
files.
diff --git a/lib/Frontend/ModuleInterfaceLoader.cpp b/lib/Frontend/ModuleInterfaceLoader.cpp
index 2a490a680d8..8d8f48aeed0 100644
--- a/lib/Frontend/ModuleInterfaceLoader.cpp
+++ b/lib/Frontend/ModuleInterfaceLoader.cpp
@@ -726,21 +726,6 @@ class ModuleInterfaceLoaderImpl {
<< "; deferring to serialized module loader\n");
UsableModulePath = adjacentMod;
return std::make_error_code(std::errc::not_supported);
- } else if (isInResourceDir(adjacentMod) &&
- loadMode == ModuleLoadingMode::PreferSerialized) {
- // Special-case here: If we're loading a .swiftmodule from the resource
- // dir adjacent to the compiler, defer to the serialized loader instead
- // of falling back. This is mainly to support development of Swift,
- // where one might change the module format version but forget to
- // recompile the standard library. If that happens, don't fall back
- // and silently recompile the standard library -- instead, error like
- // we used to.
- LLVM_DEBUG(llvm::dbgs() << "Found out-of-date module in the "
- "resource-dir at "
- << adjacentMod
- << "; deferring to serialized module loader "
- "to diagnose\n");
- return std::make_error_code(std::errc::not_supported);
} else {
LLVM_DEBUG(llvm::dbgs() << "Found out-of-date module at "
<< adjacentMod << "\n");