mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add location to the sema_no_import_target diagnostic
Thsi diagnostic currently emits, for example: ``` could not find module Foo for target arm64; found: x86_64 ``` It is sometimes very useful to know where exactly the `found` module is located, so this PR changes this diagnostic to emit: ``` could not find module Foo for target arm64; found: x86_64, at: <Path where Foo.swiftmodule/x86_64.swiftmodule is located> ```
This commit is contained in:
@@ -496,7 +496,7 @@ bool ImplicitSerializedModuleLoader::maybeDiagnoseTargetMismatch(
|
||||
}
|
||||
|
||||
Ctx.Diags.diagnose(sourceLocation, diag::sema_no_import_target, moduleName,
|
||||
target, foundArchs);
|
||||
target, foundArchs, dir);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user