mirror of
https://github.com/isar/rusqlite.git
synced 2025-03-25 23:06:04 +08:00
Merge pull request #1569 from Earthmark/earthmark/wasi_build
Fixed pre-release `wasm32-wasip(\d)` targets not enabling wasi compile flags in `bundled` mode.
This commit is contained in:
commit
4d8b8e71cd
@ -239,7 +239,7 @@ mod build_bundled {
|
||||
if !win_target() {
|
||||
cfg.flag("-DHAVE_LOCALTIME_R");
|
||||
}
|
||||
if env::var("TARGET").map_or(false, |v| v == "wasm32-wasi") {
|
||||
if env::var("TARGET").map_or(false, |v| v.starts_with("wasm32-wasi")) {
|
||||
cfg.flag("-USQLITE_THREADSAFE")
|
||||
.flag("-DSQLITE_THREADSAFE=0")
|
||||
// https://github.com/rust-lang/rust/issues/74393
|
||||
|
Loading…
x
Reference in New Issue
Block a user