Skip to content

Commit dbb6794

Browse files
bdemannyouknowone
authored andcommitted
add cfg for not wasmbind for time
1 parent 63c9909 commit dbb6794

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎vm/src/stdlib/time.rs‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,11 @@ mod decl {
9797
_time(vm)
9898
}
9999

100-
#[cfg(any(not(target_arch = "wasm32"), target_os = "wasi"))]
100+
#[cfg(any(
101+
not(target_arch = "wasm32"),
102+
target_os = "wasi",
103+
not(feature = "wasmbind")
104+
))]
101105
fn _time(vm: &VirtualMachine) -> PyResult<f64> {
102106
Ok(duration_since_system_now(vm)?.as_secs_f64())
103107
}

0 commit comments

Comments
 (0)