@@ -456,8 +456,8 @@ class SwiftBinaryModuleDependencyStorage
456456 ArrayRef<LinkLibrary> linkLibraries,
457457 ArrayRef<serialization::SearchPath> serializedSearchPaths,
458458 StringRef headerImport, StringRef definingModuleInterface,
459- bool isFramework, bool isStatic, StringRef moduleCacheKey ,
460- StringRef userModuleVersion)
459+ bool isFramework, bool isStatic, bool isBuiltWithCxxInterop ,
460+ StringRef moduleCacheKey, StringRef userModuleVersion)
461461 : ModuleDependencyInfoStorageBase(ModuleDependencyKind::SwiftBinary,
462462 moduleImports, optionalModuleImports,
463463 linkLibraries, moduleCacheKey),
@@ -466,6 +466,7 @@ class SwiftBinaryModuleDependencyStorage
466466 definingModuleInterfacePath(definingModuleInterface),
467467 serializedSearchPaths(serializedSearchPaths),
468468 isFramework(isFramework), isStatic(isStatic),
469+ isBuiltWithCxxInterop(isBuiltWithCxxInterop),
469470 userModuleVersion(userModuleVersion) {}
470471
471472 ModuleDependencyInfoStorageBase *clone () const override {
@@ -503,6 +504,10 @@ class SwiftBinaryModuleDependencyStorage
503504 // / A flag that indicates this dependency is associated with a static archive
504505 const bool isStatic;
505506
507+ // / A flag that indicates this dependency module was built
508+ // / with C++ interop enabled
509+ const bool isBuiltWithCxxInterop;
510+
506511 // / The user module version of this binary module.
507512 const std::string userModuleVersion;
508513
@@ -636,14 +641,14 @@ class ModuleDependencyInfo {
636641 ArrayRef<LinkLibrary> linkLibraries,
637642 ArrayRef<serialization::SearchPath> serializedSearchPaths,
638643 StringRef headerImport, StringRef definingModuleInterface,
639- bool isFramework, bool isStatic, StringRef moduleCacheKey ,
640- StringRef userModuleVer) {
644+ bool isFramework, bool isStatic, bool isBuiltWithCxxInterop ,
645+ StringRef moduleCacheKey, StringRef userModuleVer) {
641646 return ModuleDependencyInfo (
642647 std::make_unique<SwiftBinaryModuleDependencyStorage>(
643648 compiledModulePath, moduleDocPath, sourceInfoPath, moduleImports,
644649 optionalModuleImports, linkLibraries, serializedSearchPaths,
645650 headerImport, definingModuleInterface,isFramework, isStatic,
646- moduleCacheKey, userModuleVer));
651+ isBuiltWithCxxInterop, moduleCacheKey, userModuleVer));
647652 }
648653
649654 // / Describe the main Swift module.
0 commit comments