-
Notifications
You must be signed in to change notification settings - Fork 341
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
Error building for wasm32-wasi #1408
Comments
For |
Nobody should use the |
Removed the
Also, should I be using |
Any updates on this? |
Yeah, I got this resolved with downloading the set "CLANG_LIB_WASI=%WASI_SDK%\\lib\\clang\\15.0.7\\lib\\wasi"
set "WASI_SYSROOT=%WASI_SDK%\\share\\wasi-sysroot"
set "CC=%WASI_SDK%\\bin\\clang --sysroot=%WASI_SYSROOT%"
set "AR=%WASI_SDK%\\bin\\llvm-ar"
set "CC_wasm32_wasi=%WASI_SDK%\\bin\\clang"
set "LIBSQLITE3_FLAGS=-DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_SHARED_CACHE -D_LARGEFILE64_SOURCE"
set "RUSTFLAGS=-Clink-arg=-L%CLANG_LIB_WASI% -Clink-arg=-lclang_rt.builtins-wasm32 -Clink-arg=--export-table -Clink-arg=--export=malloc -Clink-arg=--export=free" One of the most important parts of that is linking the Hopefully this works for you! |
I'm trying to add
rusqlite
as a dependency to a project that is targeted atwasm32-wasi
(building on Windows). I have the following in myCargo.toml
:Running that gives me this error:
Removing the
bundled
option infeatures
fixes this error, but I do need to use that option. I've taken a look at some of the other issues relating to WASM support but I couldn't really figure anything out. Any insight would be appreciated!The text was updated successfully, but these errors were encountered: