-
Notifications
You must be signed in to change notification settings - Fork 10.5k
stdlib: add wasi.modulemap.gyb
for WebAssembly support
#39360
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
Conversation
This comment has been minimized.
This comment has been minimized.
It does use it, for |
This comment has been minimized.
This comment has been minimized.
COMPONENT sdk-overlay) | ||
|
||
swift_install_in_component(FILES "${wasi_libc_modulemap_out}" | ||
DESTINATION "lib/swift_static/${arch_subdir}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kateinoigakukun not quite sure why we're copying it to both lib/swift
and lib/swift_static
here, could you clarify please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I remember, it's just a workaround because some components only include /lib/swift even passing -static-stdlib. But not cure if it's still necessary. Sorry.
@swift-ci please smoke test |
WASI libc is substantially different from Glibc, thus we need a separate modulemap for it. Related to SR-9307
@swift-ci please smoke test |
923f0ef
to
4c54588
Compare
@swift-ci please smoke test |
The SwiftGlibC modulemap moved away from using hard-coded paths a while ago; now it just includes a few link statements and includes a single header. Would such an approach be feasible for WASI? |
I'm not sure, I'm not aware of how exactly the change to the Glibc modulemap was made and what the removal of paths entails. What documentation is available out there that describes how that works? |
@MaxDesiatov https://forums.swift.org/t/problems-with-swiftglibc-and-proposed-fix/37594 under the "Proposal" heading
It seems like that would be a good fit for WASI |
Closing in favor of #66539 |
WASI libc is substantially different from Glibc, thus we need a separate modulemap for it.
Related to SR-9307
cc @kateinoigakukun