Skip to content

Conversation

neonichu
Copy link
Collaborator

@neonichu neonichu commented Jul 31, 2025

Instead of emitting diagnostics separately per language, this emits them together by first computing missing dependencies for each language and then merging and deduplicating them before diagnostic generation.

The code here will be forward compatible when we extend the Clang implementation to respect access levels and/or provide import locations.

@neonichu
Copy link
Collaborator Author

@swift-ci please test

@mirza-garibovic
Copy link
Contributor

I'd change this to emit a single top-level diag+fixit which includes both swift and clang sources of module deps, that way you avoid two MODULE_DEPS=x y z insertions in the empty-xcconfig base case.

@neonichu
Copy link
Collaborator Author

@swift-ci please test

@jakepetroules
Copy link
Collaborator

@swift-ci test macos

1 similar comment
@neonichu
Copy link
Collaborator Author

neonichu commented Aug 1, 2025

@swift-ci test macos

If a missing C dependency is also a dependency of the Swift code in a module, we won't report the dependency as missing from the C context.
Instead of emitting diagnostics separately per language, this emits them together by first computing missing dependencies for each language and then merging and deduplicating them before diagnostic generation.

The code here will be forward compatible when we extend the Clang implementation to respect access levels and/or provide import locations.
@neonichu neonichu force-pushed the module-deps-cross-language branch from 837897c to 49075cb Compare August 1, 2025 18:07
@neonichu
Copy link
Collaborator Author

neonichu commented Aug 1, 2025

@swift-ci please test

1 similar comment
@neonichu
Copy link
Collaborator Author

neonichu commented Aug 1, 2025

@swift-ci please test

@neonichu
Copy link
Collaborator Author

neonichu commented Aug 4, 2025

@swift-ci please test

@neonichu neonichu merged commit db3a4e3 into swiftlang:main Aug 4, 2025
26 checks passed
@neonichu neonichu deleted the module-deps-cross-language branch August 4, 2025 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants