Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Macro][Dependencies] Properly model macro dependencies in the scanner #76591

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

cachemeifyoucan
Copy link
Contributor

Add function to handle all macro dependencies kinds in the scanner, including taking care of the macro definitions in the module interface for its client to use. The change involves:

  • Encode the macro definition inside the binary module
  • Resolve macro modules in the dependencies scanners, including those
    declared inside the dependency modules.
  • Propagate the macro defined from the direct dependencies to track
    all the potentially available modules inside a module compilation.

Fix a bug that the index is not incremented in the loop, causing
malformed swift dependencies graph when more than one macro dependency
is found inside one module.
Add function to handle all macro dependencies kinds in the scanner,
including taking care of the macro definitions in the module interface
for its client to use. The change involves:
  * Encode the macro definition inside the binary module
  * Resolve macro modules in the dependencies scanners, including those
    declared inside the dependency modules.
  * Propagate the macro defined from the direct dependencies to track
    all the potentially available modules inside a module compilation.
@cachemeifyoucan
Copy link
Contributor Author

@swift-ci please smoke test

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.

1 participant