@@ -393,8 +393,8 @@ class SwiftBinaryModuleDependencyStorage
393393 ArrayRef<LinkLibrary> linkLibraries,
394394 ArrayRef<serialization::SearchPath> serializedSearchPaths,
395395 StringRef headerImport, StringRef definingModuleInterface,
396- bool isFramework, bool isStatic, StringRef moduleCacheKey ,
397- StringRef userModuleVersion)
396+ bool isFramework, bool isStatic, bool isBuiltWithCxxInterop ,
397+ StringRef moduleCacheKey, StringRef userModuleVersion)
398398 : ModuleDependencyInfoStorageBase(ModuleDependencyKind::SwiftBinary,
399399 moduleImports, optionalModuleImports,
400400 linkLibraries, moduleCacheKey),
@@ -403,6 +403,7 @@ class SwiftBinaryModuleDependencyStorage
403403 definingModuleInterfacePath(definingModuleInterface),
404404 serializedSearchPaths(serializedSearchPaths),
405405 isFramework(isFramework), isStatic(isStatic),
406+ isBuiltWithCxxInterop(isBuiltWithCxxInterop),
406407 userModuleVersion(userModuleVersion) {}
407408
408409 ModuleDependencyInfoStorageBase *clone () const override {
@@ -440,6 +441,10 @@ class SwiftBinaryModuleDependencyStorage
440441 // / A flag that indicates this dependency is associated with a static archive
441442 const bool isStatic;
442443
444+ // / A flag that indicates this dependency module was built
445+ // / with C++ interop enabled
446+ const bool isBuiltWithCxxInterop;
447+
443448 // / The user module version of this binary module.
444449 const std::string userModuleVersion;
445450
@@ -573,14 +578,14 @@ class ModuleDependencyInfo {
573578 ArrayRef<LinkLibrary> linkLibraries,
574579 ArrayRef<serialization::SearchPath> serializedSearchPaths,
575580 StringRef headerImport, StringRef definingModuleInterface,
576- bool isFramework, bool isStatic, StringRef moduleCacheKey ,
577- StringRef userModuleVer) {
581+ bool isFramework, bool isStatic, bool isBuiltWithCxxInterop ,
582+ StringRef moduleCacheKey, StringRef userModuleVer) {
578583 return ModuleDependencyInfo (
579584 std::make_unique<SwiftBinaryModuleDependencyStorage>(
580585 compiledModulePath, moduleDocPath, sourceInfoPath, moduleImports,
581586 optionalModuleImports, linkLibraries, serializedSearchPaths,
582587 headerImport, definingModuleInterface,isFramework, isStatic,
583- moduleCacheKey, userModuleVer));
588+ isBuiltWithCxxInterop, moduleCacheKey, userModuleVer));
584589 }
585590
586591 // / Describe the main Swift module.
0 commit comments