mirror of
https://github.com/isar/rusqlite.git
synced 2025-03-29 00:32:57 +08:00
Pre-release wasi targets not enabling wasi flags properly in bundled mode.
wasm32-wasi is being deprecated in favor of pre-release targets like `wasm32-wasip\d`. This instead matches the prefix wasi target, so any future pre-releases will probably, maybe work out of the box.
This commit is contained in:
parent
95680270ec
commit
31cdeda2ed
@ -239,7 +239,7 @@ mod build_bundled {
|
|||||||
if !win_target() {
|
if !win_target() {
|
||||||
cfg.flag("-DHAVE_LOCALTIME_R");
|
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")
|
cfg.flag("-USQLITE_THREADSAFE")
|
||||||
.flag("-DSQLITE_THREADSAFE=0")
|
.flag("-DSQLITE_THREADSAFE=0")
|
||||||
// https://github.com/rust-lang/rust/issues/74393
|
// https://github.com/rust-lang/rust/issues/74393
|
||||||
|
Loading…
x
Reference in New Issue
Block a user