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

Add feature to propagate the generated module map #1212

Merged
merged 1 commit into from
Jun 14, 2024

Conversation

brentleyjones
Copy link
Collaborator

Allows objc_library to modularly import swift_library targets without having to generate a similar module map.

Copy link
Contributor

@mattrobmattrob mattrobmattrob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a simple test that exercises this feature and shows what it enables vs. the default?

cgrindel pushed a commit to cgrindel/rules_swift_package_manager that referenced this pull request Jun 12, 2024
Fixes the tokenizer and modulemap parser to support C99 formatted
comments. This is probably not amazing but we'll be able to move off
this soon: bazelbuild/rules_swift#1212
@brentleyjones brentleyjones force-pushed the bj/propogate_generated_modulemap branch 4 times, most recently from 5dba983 to 09fba32 Compare June 14, 2024 13:57
@brentleyjones
Copy link
Collaborator Author

@mattrobmattrob I added an example which fails on CI when the new feature isn't passed.

@brentleyjones brentleyjones force-pushed the bj/propogate_generated_modulemap branch 3 times, most recently from 87b40d5 to 8bd59f8 Compare June 14, 2024 14:14
swift/internal/compiling.bzl Outdated Show resolved Hide resolved
swift/internal/feature_names.bzl Outdated Show resolved Hide resolved
Allows `objc_library` to modularly import `swift_library` targets without having to generate a similar module map.
@brentleyjones brentleyjones force-pushed the bj/propogate_generated_modulemap branch from 8bd59f8 to 78cd04b Compare June 14, 2024 17:21
@brentleyjones brentleyjones merged commit ddc5888 into master Jun 14, 2024
15 checks passed
@brentleyjones brentleyjones deleted the bj/propogate_generated_modulemap branch June 14, 2024 17:28
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.

2 participants