@@ -456,8 +456,8 @@ class SwiftBinaryModuleDependencyStorage
456
456
ArrayRef<LinkLibrary> linkLibraries,
457
457
ArrayRef<serialization::SearchPath> serializedSearchPaths,
458
458
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)
461
461
: ModuleDependencyInfoStorageBase(ModuleDependencyKind::SwiftBinary,
462
462
moduleImports, optionalModuleImports,
463
463
linkLibraries, moduleCacheKey),
@@ -466,6 +466,7 @@ class SwiftBinaryModuleDependencyStorage
466
466
definingModuleInterfacePath(definingModuleInterface),
467
467
serializedSearchPaths(serializedSearchPaths),
468
468
isFramework(isFramework), isStatic(isStatic),
469
+ isBuiltWithCxxInterop(isBuiltWithCxxInterop),
469
470
userModuleVersion(userModuleVersion) {}
470
471
471
472
ModuleDependencyInfoStorageBase *clone () const override {
@@ -503,6 +504,10 @@ class SwiftBinaryModuleDependencyStorage
503
504
// / A flag that indicates this dependency is associated with a static archive
504
505
const bool isStatic;
505
506
507
+ // / A flag that indicates this dependency module was built
508
+ // / with C++ interop enabled
509
+ const bool isBuiltWithCxxInterop;
510
+
506
511
// / The user module version of this binary module.
507
512
const std::string userModuleVersion;
508
513
@@ -636,14 +641,14 @@ class ModuleDependencyInfo {
636
641
ArrayRef<LinkLibrary> linkLibraries,
637
642
ArrayRef<serialization::SearchPath> serializedSearchPaths,
638
643
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) {
641
646
return ModuleDependencyInfo (
642
647
std::make_unique<SwiftBinaryModuleDependencyStorage>(
643
648
compiledModulePath, moduleDocPath, sourceInfoPath, moduleImports,
644
649
optionalModuleImports, linkLibraries, serializedSearchPaths,
645
650
headerImport, definingModuleInterface,isFramework, isStatic,
646
- moduleCacheKey, userModuleVer));
651
+ isBuiltWithCxxInterop, moduleCacheKey, userModuleVer));
647
652
}
648
653
649
654
// / Describe the main Swift module.
0 commit comments