@@ -39,20 +39,24 @@ class SwiftModuleScanner : public SerializedModuleLoaderBase {
39
39
40
40
InterfaceSubContextDelegate &astDelegate;
41
41
42
- // / Location where pre-built moduels are to be built into.
42
+ // / Location where pre-built modules are to be built into.
43
43
std::string moduleOutputPath;
44
+ // / Location where pre-built SDK modules are to be built into.
45
+ std::string sdkModuleOutputPath;
44
46
45
47
public:
46
48
std::optional<ModuleDependencyInfo> dependencies;
47
49
48
50
SwiftModuleScanner (ASTContext &ctx, ModuleLoadingMode LoadMode,
49
51
Identifier moduleName,
50
52
InterfaceSubContextDelegate &astDelegate,
51
- StringRef moduleOutputPath, ScannerKind kind = MDS_plain)
53
+ StringRef moduleOutputPath, StringRef sdkModuleOutputPath,
54
+ ScannerKind kind = MDS_plain)
52
55
: SerializedModuleLoaderBase(ctx, nullptr , LoadMode,
53
56
/* IgnoreSwiftSourceInfoFile=*/ true ),
54
57
kind (kind), moduleName(moduleName), astDelegate(astDelegate),
55
- moduleOutputPath(moduleOutputPath) {}
58
+ moduleOutputPath(moduleOutputPath),
59
+ sdkModuleOutputPath(sdkModuleOutputPath) {}
56
60
57
61
std::error_code findModuleFilesInDirectory (
58
62
ImportPath::Element ModuleID, const SerializedModuleBaseName &BaseName,
@@ -93,9 +97,11 @@ class PlaceholderSwiftModuleScanner : public SwiftModuleScanner {
93
97
Identifier moduleName,
94
98
StringRef PlaceholderDependencyModuleMap,
95
99
InterfaceSubContextDelegate &astDelegate,
96
- StringRef moduleOutputPath)
100
+ StringRef moduleOutputPath,
101
+ StringRef sdkModuleOutputPath)
97
102
: SwiftModuleScanner(ctx, LoadMode, moduleName, astDelegate,
98
- moduleOutputPath, MDS_placeholder) {
103
+ moduleOutputPath, sdkModuleOutputPath,
104
+ MDS_placeholder) {
99
105
100
106
// FIXME: Find a better place for this map to live, to avoid
101
107
// doing the parsing on every module.
0 commit comments