mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Do not fail the build on only finding incompatible-architecture modules on 'canImport'
This change refactors the module loaders to explicitly take a parameter indicating whether or not the loader is handling a 'canImport' query, in order to avoid emitting an error when finding a dependency Swift binary module with only imcompatible architecture variants present. Resolves rdar://161175498
This commit is contained in:
@@ -131,7 +131,7 @@ protected:
|
||||
SerializedModuleBaseName(tempDir, SerializedModuleBaseName("Library")),
|
||||
/*ModuleInterfacePath=*/nullptr, /*ModuleInterfaceSourcePath=*/nullptr,
|
||||
&moduleBuffer, &moduleDocBuffer, &moduleSourceInfoBuffer,
|
||||
/*skipBuildingInterface*/ false, /*IsFramework*/false);
|
||||
/*isCanImportLookup*/ false, /*IsFramework*/false);
|
||||
ASSERT_FALSE(error);
|
||||
ASSERT_FALSE(diags.hadAnyError());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user