File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ num_enum = "0.5.7"
6565ascii = " 1.0.0"
6666
6767# mmap
68+ [target .'cfg(all(unix, not(target_arch = "wasm32")))' .dependencies ]
6869memmap2 = " 0.5"
6970page_size = " 0.4"
7071
Original file line number Diff line number Diff line change @@ -115,13 +115,13 @@ mod mmap {
115115 #[ pyattr]
116116 const ACCESS_COPY : u32 = AccessMode :: Copy as u32 ;
117117
118- #[ cfg( not ( any ( target_os = "wasi" , target_os = "redox" , target_arch = "wasm32" ) ) ) ]
118+ #[ cfg( all ( unix , not ( target_arch = "wasm32" ) ) ) ]
119119 #[ pyattr( name = "PAGESIZE" , once) ]
120120 fn page_size ( _vm : & VirtualMachine ) -> usize {
121121 page_size:: get ( )
122122 }
123123
124- #[ cfg( not ( any ( target_os = "wasi" , target_os = "redox" , target_arch = "wasm32" ) ) ) ]
124+ #[ cfg( all ( unix , not ( target_arch = "wasm32" ) ) ) ]
125125 #[ pyattr( name = "ALLOCATIONGRANULARITY" , once) ]
126126 fn granularity ( _vm : & VirtualMachine ) -> usize {
127127 page_size:: get_granularity ( )
You can’t perform that action at this time.
0 commit comments