@@ -39,20 +39,24 @@ class SwiftModuleScanner : public SerializedModuleLoaderBase {
3939
4040 InterfaceSubContextDelegate &astDelegate;
4141
42- // / Location where pre-built moduels are to be built into.
42+ // / Location where pre-built modules are to be built into.
4343 std::string moduleOutputPath;
44+ // / Location where pre-built SDK modules are to be built into.
45+ std::string sdkModuleOutputPath;
4446
4547public:
4648 std::optional<ModuleDependencyInfo> dependencies;
4749
4850 SwiftModuleScanner (ASTContext &ctx, ModuleLoadingMode LoadMode,
4951 Identifier moduleName,
5052 InterfaceSubContextDelegate &astDelegate,
51- StringRef moduleOutputPath, ScannerKind kind = MDS_plain)
53+ StringRef moduleOutputPath, StringRef sdkModuleOutputPath,
54+ ScannerKind kind = MDS_plain)
5255 : SerializedModuleLoaderBase(ctx, nullptr , LoadMode,
5356 /* IgnoreSwiftSourceInfoFile=*/ true ),
5457 kind (kind), moduleName(moduleName), astDelegate(astDelegate),
55- moduleOutputPath(moduleOutputPath) {}
58+ moduleOutputPath(moduleOutputPath),
59+ sdkModuleOutputPath(sdkModuleOutputPath) {}
5660
5761 std::error_code findModuleFilesInDirectory (
5862 ImportPath::Element ModuleID, const SerializedModuleBaseName &BaseName,
@@ -93,9 +97,11 @@ class PlaceholderSwiftModuleScanner : public SwiftModuleScanner {
9397 Identifier moduleName,
9498 StringRef PlaceholderDependencyModuleMap,
9599 InterfaceSubContextDelegate &astDelegate,
96- StringRef moduleOutputPath)
100+ StringRef moduleOutputPath,
101+ StringRef sdkModuleOutputPath)
97102 : SwiftModuleScanner(ctx, LoadMode, moduleName, astDelegate,
98- moduleOutputPath, MDS_placeholder) {
103+ moduleOutputPath, sdkModuleOutputPath,
104+ MDS_placeholder) {
99105
100106 // FIXME: Find a better place for this map to live, to avoid
101107 // doing the parsing on every module.
0 commit comments