File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,10 @@ mod c_char_definition {
133
133
134
134
mod c_long_definition {
135
135
cfg_if ! {
136
- if #[ cfg( all( target_pointer_width = "64" , not( windows) ) ) ] {
136
+ if #[ cfg( any(
137
+ all( target_pointer_width = "64" , not( windows) ) ,
138
+ // wasm32 Linux ABI uses 64-bit long
139
+ all( target_arch = "wasm32" , target_os = "linux" ) ) ) ] {
137
140
pub ( super ) type c_long = i64 ;
138
141
pub ( super ) type c_ulong = u64 ;
139
142
} else {
Original file line number Diff line number Diff line change @@ -72,9 +72,12 @@ pub const unwinder_private_data_size: usize = 2;
72
72
#[ cfg( any( target_arch = "riscv64" , target_arch = "riscv32" ) ) ]
73
73
pub const unwinder_private_data_size: usize = 2 ;
74
74
75
- #[ cfg( target_os = "emscripten" ) ]
75
+ #[ cfg( all ( target_arch = "wasm32" , target_os = "emscripten" ) ) ]
76
76
pub const unwinder_private_data_size: usize = 20 ;
77
77
78
+ #[ cfg( all( target_arch = "wasm32" , target_os = "linux" ) ) ]
79
+ pub const unwinder_private_data_size: usize = 2 ;
80
+
78
81
#[ cfg( all( target_arch = "hexagon" , target_os = "linux" ) ) ]
79
82
pub const unwinder_private_data_size: usize = 35 ;
80
83
You can’t perform that action at this time.
0 commit comments