-
-
Notifications
You must be signed in to change notification settings - Fork 725
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
WASM: file system support #234
Comments
I guess it is related to xmake-io/xmake#4173, if I set the emcc toolchain proper, it should work! |
If I run
Using an elvish script like below:
If we set the EMSDK environment variable, And the behavior of the related API still need to be checked! |
And checked the |
这是因为 tbox 默认用的也是全局的 configvar_check_cfuncs,而 wasm 新加的 target 粒度 toolchain 绑定,暂时我也没空改成 target 粒度 check 。。 你可以走 |
This is because tbox also uses the global configvar_check_cfuncs by default, and wasm’s newly added target granularity toolchain binding, I have no time to change to target granularity check for the time being. . You can run |
等这个 patch #235 |
初步可以了,先试试 check 分支 |
It's okay initially, try the check branch first |
Is your feature request related to a problem? Please describe.
We are using tbox to implement the file system related API in lolly:
https://github.com/XmacsLabs/lolly/blob/main/System/Files/file.cpp
And we find the APIs are not working as expected on WASM.
Describe the solution you'd like
In https://emscripten.org/docs/porting/files/file_systems_overview.html:
I guess if we implement it in posix api, it should work fine.
The only thing we need to do is to tune the macros in tbox (I guess).
And here is a list of routines we are using and I will try to make it work on wasm:
Describe alternatives you've considered
None
Additional context
None
The text was updated successfully, but these errors were encountered: