Skip to content

Fix dup modmaps taking into account macro test targets. #8524

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

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

Conversation

dschaefer2
Copy link
Member

In my previous attempt to fix the duplicate modulemaps from C library dependencies of macros/plugins and destination targets, I didn't take into account test targets depending on macros, i.e. macro tests. In these cases the modulemap flags do need to pass through to the tests. This was discovered in swift-foundation which couldn't find the _SwiftSyntaxCShims module map.

Fixed this my moving the traversing link dependencies a layer lower since we need access to the parent node during traversal and this is available in the successor methods. Cleaned up my previous attempt.

In my previous attempt to fix the duplicate modulemaps from C
library dependencies of macros/plugins and destination targets,
I didn't take into account test targets depending on macros,
i.e. macro tests. In these cases the modulemap flags do need to
pass through to the tests. This was discovered in swift-foundation
which couldn't find the _SwiftSyntaxCShims module map.

Fixed this my moving the traversing link dependencies a layer
lower since we need access to the parent node during traversal
and this is available in the successor methods. Cleaned up my
previous attempt.
@dschaefer2
Copy link
Member Author

@swift-ci please test

@dschaefer2
Copy link
Member Author

@swift-ci please test windows

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