Skip to content

Driver: link only static libraries for WebAssembly #31691

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

Closed
wants to merge 1 commit into from

Conversation

MaxDesiatov
Copy link
Contributor

WebAssembly doesn't support dynamic linking currently (at least not without direct support from a WebAssembly host, which is not standardized at all). Thus, the Swift driver shouldn't attempt to link dynamic libraries when -emit-library is passed.

Related to SR-9307.

(cc @compnerd)

@compnerd
Copy link
Member

Why not require the user to pass -static? It makes it clear that a static library is being built and means that people can experiment with the non-standard features as well.

@MaxDesiatov
Copy link
Contributor Author

MaxDesiatov commented May 11, 2020

Good point, this is now reverted in the fork with swiftwasm#957.

@MaxDesiatov MaxDesiatov deleted the patch-3 branch May 11, 2020 23:36
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