File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -97,16 +97,20 @@ mod decl {
97
97
_time ( vm)
98
98
}
99
99
100
- #[ cfg( any (
101
- not ( target_arch = "wasm32" ) ,
102
- target_os = "wasi " ,
103
- not( feature = "wasmbind" )
104
- ) ) ]
100
+ #[ cfg( not ( all (
101
+ target_arch = "wasm32" ,
102
+ feature = "wasmbind " ,
103
+ not( any ( target_os = "emscripten" , target_os = "wasi" ) )
104
+ ) ) ) ]
105
105
fn _time ( vm : & VirtualMachine ) -> PyResult < f64 > {
106
106
Ok ( duration_since_system_now ( vm) ?. as_secs_f64 ( ) )
107
107
}
108
108
109
- #[ cfg( all( target_arch = "wasm32" , not( target_os = "wasi" ) , feature = "wasmbind" ) ) ]
109
+ #[ cfg( all(
110
+ target_arch = "wasm32" ,
111
+ feature = "wasmbind" ,
112
+ not( any( target_os = "emscripten" , target_os = "wasi" ) )
113
+ ) ) ]
110
114
fn _time ( _vm : & VirtualMachine ) -> PyResult < f64 > {
111
115
use wasm_bindgen:: prelude:: * ;
112
116
#[ wasm_bindgen]
You can’t perform that action at this time.
0 commit comments