@@ -393,8 +393,8 @@ class SwiftBinaryModuleDependencyStorage
393
393
ArrayRef<LinkLibrary> linkLibraries,
394
394
ArrayRef<serialization::SearchPath> serializedSearchPaths,
395
395
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)
398
398
: ModuleDependencyInfoStorageBase(ModuleDependencyKind::SwiftBinary,
399
399
moduleImports, optionalModuleImports,
400
400
linkLibraries, moduleCacheKey),
@@ -403,6 +403,7 @@ class SwiftBinaryModuleDependencyStorage
403
403
definingModuleInterfacePath(definingModuleInterface),
404
404
serializedSearchPaths(serializedSearchPaths),
405
405
isFramework(isFramework), isStatic(isStatic),
406
+ isBuiltWithCxxInterop(isBuiltWithCxxInterop),
406
407
userModuleVersion(userModuleVersion) {}
407
408
408
409
ModuleDependencyInfoStorageBase *clone () const override {
@@ -440,6 +441,10 @@ class SwiftBinaryModuleDependencyStorage
440
441
// / A flag that indicates this dependency is associated with a static archive
441
442
const bool isStatic;
442
443
444
+ // / A flag that indicates this dependency module was built
445
+ // / with C++ interop enabled
446
+ const bool isBuiltWithCxxInterop;
447
+
443
448
// / The user module version of this binary module.
444
449
const std::string userModuleVersion;
445
450
@@ -573,14 +578,14 @@ class ModuleDependencyInfo {
573
578
ArrayRef<LinkLibrary> linkLibraries,
574
579
ArrayRef<serialization::SearchPath> serializedSearchPaths,
575
580
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) {
578
583
return ModuleDependencyInfo (
579
584
std::make_unique<SwiftBinaryModuleDependencyStorage>(
580
585
compiledModulePath, moduleDocPath, sourceInfoPath, moduleImports,
581
586
optionalModuleImports, linkLibraries, serializedSearchPaths,
582
587
headerImport, definingModuleInterface,isFramework, isStatic,
583
- moduleCacheKey, userModuleVer));
588
+ isBuiltWithCxxInterop, moduleCacheKey, userModuleVer));
584
589
}
585
590
586
591
// / Describe the main Swift module.
0 commit comments