-
Notifications
You must be signed in to change notification settings - Fork 30
Pointers needed on WASILibc #2313
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
Comments
Did you have a look at wasi-libc source code? https://github.com/WebAssembly/wasi-libc/blob/378fd4b21aab6d390f3a1c1817d53c422ad00a62/libc-top-half/musl/include/stdio.h#L14 Usually it's just easier to OTOH, if a library relies on Foundation, then yes, tweaking WASI libc may be more appropriate, I'm not sure if we'll ever make Foundation work without WASI... |
Thanks! I am focusing on some Foundation or lower things ATM so seems like have no choice. |
I think |
I faced similar problems when developing chibi-link Now If wasi-libc provides complete FILE structure, And I think we can re-define those constants in WASI.swift.gyb |
(no pun intended)
Hi!
I'm trying to get ZipFoundation to work in SwiftWasm.
Already got zlib building so we're getting there.
Now, when Swift code calls types like
FILE
or values likeSEEK_SET
which are missing, I'm assuming those can be included by tweaking https://github.com/swiftwasm/swift/blob/swiftwasm/stdlib/public/Platform/wasi.modulemap.gyb, correct?(For example, perhaps these should do the trick:
).
On that note, I'm trying to track down the exact source of /usr/share/wasi-sysroot/share/wasm32-wasi/predefined-macros.txt included in the toolchain, (which includes
#define __DEFINED_FILE
, which we probably don't want) and how/if it affects the build.The text was updated successfully, but these errors were encountered: