mirror of
				https://github.com/isar/rusqlite.git
				synced 2025-11-04 16:28:55 +08:00 
			
		
		
		
	fix compilation for target wasm32-wasi
This commit is contained in:
		@@ -240,7 +240,7 @@ mod build_bundled {
 | 
			
		||||
            cfg.flag("-DHAVE_LOCALTIME_R");
 | 
			
		||||
        }
 | 
			
		||||
        // 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")
 | 
			
		||||
                // https://github.com/rust-lang/rust/issues/74393
 | 
			
		||||
                .flag("-DLONGDOUBLE_TYPE=double");
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user