File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,10 +8,10 @@ mod top_bar;
88mod targets;
99
1010fn main ( ) {
11- #[ cfg( target_arch = "wasm32 " ) ]
11+ #[ cfg( target_family = "wasm " ) ]
1212 targets:: wasm:: main ( ) ;
1313
14- #[ cfg( not( target_arch = "wasm32 " ) ) ]
14+ #[ cfg( not( target_family = "wasm " ) ) ]
1515 targets:: native:: main ( ) . ok ( ) ;
1616}
1717
Original file line number Diff line number Diff line change 1- #[ cfg( target_arch = "wasm32 " ) ]
1+ #[ cfg( target_family = "wasm " ) ]
22pub mod wasm;
3- #[ cfg( not( target_arch = "wasm32 " ) ) ]
3+ #[ cfg( not( target_family = "wasm " ) ) ]
44pub mod native;
Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ impl AsmServer {
214214 if let Err ( e) = write_result {
215215 error ! ( "save file {source_key} meets an error. {e:?}" ) ;
216216 } ;
217- #[ cfg( not( target_arch = "wasm32 " ) ) ] {
217+ #[ cfg( not( target_family = "wasm " ) ) ] {
218218 let saved_path = write_access. guess_path ( ) ;
219219 let parent_path = saved_path. parent ( ) . unwrap_or ( saved_path. as_path ( ) ) ;
220220 if !parent_path. exists ( ) { return ; } ;
You can’t perform that action at this time.
0 commit comments