Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add cfg for not wasmbind for time
  • Loading branch information
bdemann committed Apr 19, 2023
commit b88e25f780b3275f9abc568d9c607de55720cb1c
2 changes: 1 addition & 1 deletion vm/src/stdlib/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ mod time {
_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())
}
Expand Down