Frontend: Add a rebuild diagnostic explaining why the adjacent swiftmodule was ignored.

In https://github.com/apple/swift/pull/42486 new behavior was introduced to ignore adjacent .swiftmodule files in the SDK. This behavior has caught a few people off guard so it seems like there should be diagnostics clarifying why a rebuild is occurring in this scenario.

Resolves rdar://105477473
This commit is contained in:
Allan Shortlidge
2023-02-14 19:02:43 -08:00
parent 9f922206d0
commit b11dcb985e
3 changed files with 50 additions and 15 deletions

View File

@@ -29,6 +29,7 @@
// RUN: -verify -Rmodule-interface-rebuild
import PublicSwift // expected-remark {{rebuilding module 'PublicSwift' from interface}}
// expected-note @-1 {{was ignored because it belongs to a framework in the SDK}}
// The private adjacent module under PrivateFrameworks should still be tried first, and then rebuilt.
import PrivateSwift