Skip to content

Commit 3f1261c

Browse files
committed
add cfg for not wasmbind for time
1 parent 578f206 commit 3f1261c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

vm/src/stdlib/time.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,11 @@ mod time {
8484
_time(vm)
8585
}
8686

87-
#[cfg(any(not(target_arch = "wasm32"), target_os = "wasi"))]
87+
#[cfg(any(
88+
not(target_arch = "wasm32"),
89+
target_os = "wasi",
90+
not(feature = "wasmbind")
91+
))]
8892
fn _time(vm: &VirtualMachine) -> PyResult<f64> {
8993
Ok(duration_since_system_now(vm)?.as_secs_f64())
9094
}

0 commit comments

Comments
 (0)