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

mark CAtomic import as internal or implementation-only #200

Merged
merged 2 commits into from
Sep 17, 2024

Conversation

QuietMisdreavus
Copy link
Contributor

Bug/issue #, if applicable: fixes rdar://134894555, fixes #195

Summary

The CAtomic target defined in this package is causing issues when verifying module interfaces of projects that depend on Swift-Markdown. This PR marks the import of CAtomic in Swift-Markdown as internal or @_implementationOnly, depending on the compiler in use, to sidestep the issue.

Dependencies

None

Testing

Ensure that no behavior has changed.

Checklist

Make sure you check off the following items. If they cannot be completed, provide a reason.

  • [ n/a ] Added tests
  • Ran the ./bin/test script and it succeeded
  • [ n/a ] Updated documentation if necessary

@QuietMisdreavus
Copy link
Contributor Author

@swift-ci Please test

Copy link
Contributor

@Kyle-Ye Kyle-Ye left a comment

Choose a reason for hiding this comment

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

LGTM. But IIRC internal import need something like .enableExperimentalFeature("AccessLevelOnImport") for Swift 5.10 compiler.

@Kyle-Ye
Copy link
Contributor

Kyle-Ye commented Sep 17, 2024

Confirmed it. SE409 stated that only main and release/5.9 needed this flag, but it is actually also needed for 5.10 compiler.

Tested with Xcode 15.3 + Swift 5.10

image

Co-authored-by: Kyle <kyle201817146@gmail.com>
@QuietMisdreavus
Copy link
Contributor Author

@swift-ci Please test

@QuietMisdreavus QuietMisdreavus merged commit 2829eef into swiftlang:main Sep 17, 2024
2 checks passed
@QuietMisdreavus QuietMisdreavus deleted the internal-import branch September 17, 2024 16:48
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.

Cannot use swift-markdown in package built for distribution
2 participants