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

improved embedded support for building with SwiftPM #267

Merged
merged 5 commits into from
Oct 31, 2024

Conversation

sliemeobn
Copy link
Contributor

Having to provide a lot of external flags to swift build is not ideal and basically breaks down when adding swift macro targets.

This PR pushes the currently required flags into the Package.swift file to allow building without any global flags provided to the build command.

NOTE: The __Embedded define for the C target configuration did not play well with SwiftPM, so I based the logic on __wasi__ (thanks @MaxDesiatov for the idea). However, it is not a perfect match and I hope a better solution will present itself in the future.

@kateinoigakukun kateinoigakukun merged commit 64e2e11 into swiftwasm:main Oct 31, 2024
17 checks passed
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