Skip to content

Add compatibility for Embedded Swift#261

Draft
MaxDesiatov wants to merge 3 commits intomainfrom
maxd/embedded-swift
Draft

Add compatibility for Embedded Swift#261
MaxDesiatov wants to merge 3 commits intomainfrom
maxd/embedded-swift

Conversation

@MaxDesiatov
Copy link
Copy Markdown

Summary

When building swift-markdown with Embedded Swift for Wasm, multiple issues occur:

  1. Dependency on Foundation doesn't allow building for Embedded Swift, but this dependency is not required for most Embedded Swift use cases
  2. Recursive generics with ManagedBuffer case compiler hangs, which should emit error diagnostics instead, fixed in Embedded: fix OOM in swift-frontend with recursive generics swift#88296

Dependencies

swiftlang/swift#88296 is not a strict dependency, since it will only cause the build of main to fail instead of hang. We're working around the use of recursive ManagedBuffer when building for Embedded Swift altogether in this PR.

Testing

Existing non-embedded builds test suite passes. Since Swift Testing doesn't support Embedded Swift yet, this configuration is verified manually.

Checklist

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

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

@MaxDesiatov
Copy link
Copy Markdown
Author

@swift-ci test

@MaxDesiatov
Copy link
Copy Markdown
Author

@swift-ci test

@MaxDesiatov
Copy link
Copy Markdown
Author

@swift-ci test

@MaxDesiatov MaxDesiatov marked this pull request as draft April 5, 2026 15:47
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