Merge pull request #1321 from wasm-forge/master

fix compilation for target wasm32-wasi
This commit is contained in:
gwenn 2023-05-07 11:48:34 +02:00 committed by GitHub
commit 1a82396f2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -240,7 +240,7 @@ mod build_bundled {
cfg.flag("-DHAVE_LOCALTIME_R"); cfg.flag("-DHAVE_LOCALTIME_R");
} }
// Target wasm32-wasi can't compile the default VFS // Target wasm32-wasi can't compile the default VFS
if is_compiler("wasm32-wasi") { if env::var("TARGET").map_or(false, |v| v == "wasm32-wasi") {
cfg.flag("-DSQLITE_OS_OTHER") cfg.flag("-DSQLITE_OS_OTHER")
// https://github.com/rust-lang/rust/issues/74393 // https://github.com/rust-lang/rust/issues/74393
.flag("-DLONGDOUBLE_TYPE=double"); .flag("-DLONGDOUBLE_TYPE=double");