add cfg for not wasmbind for time

This commit is contained in:
Benjamin DeMann
2023-04-19 10:21:15 -06:00
committed by Jeong YunWon
parent 63c9909aa0
commit dbb6794a41

View File

@@ -97,7 +97,11 @@ mod decl {
_time(vm)
}
#[cfg(any(not(target_arch = "wasm32"), target_os = "wasi"))]
#[cfg(any(
not(target_arch = "wasm32"),
target_os = "wasi",
not(feature = "wasmbind")
))]
fn _time(vm: &VirtualMachine) -> PyResult<f64> {
Ok(duration_since_system_now(vm)?.as_secs_f64())
}