| ... | @@ -3156,6 +3156,13 @@ pub fn cTypeAlignment(target: Target, c_type: CType) u16 { | ... | @@ -3156,6 +3156,13 @@ pub fn cTypeAlignment(target: Target, c_type: CType) u16 { |
| 3156 | }, | 3156 | }, |
| 3157 | else => {}, | 3157 | else => {}, |
| 3158 | }, | 3158 | }, |
| | 3159 | .wasm32, .wasm64 => switch (target.os.tag) { |
| | 3160 | .emscripten => switch (c_type) { |
| | 3161 | .longdouble => return 8, |
| | 3162 | else => {}, |
| | 3163 | }, |
| | 3164 | else => {}, |
| | 3165 | }, |
| 3159 | else => {}, | 3166 | else => {}, |
| 3160 | } | 3167 | } |
| 3161 | | 3168 | |
| ... | @@ -3285,6 +3292,13 @@ pub fn cTypePreferredAlignment(target: Target, c_type: CType) u16 { | ... | @@ -3285,6 +3292,13 @@ pub fn cTypePreferredAlignment(target: Target, c_type: CType) u16 { |
| 3285 | else => {}, | 3292 | else => {}, |
| 3286 | }, | 3293 | }, |
| 3287 | }, | 3294 | }, |
| | 3295 | .wasm32, .wasm64 => switch (target.os.tag) { |
| | 3296 | .emscripten => switch (c_type) { |
| | 3297 | .longdouble => return 8, |
| | 3298 | else => {}, |
| | 3299 | }, |
| | 3300 | else => {}, |
| | 3301 | }, |
| 3288 | else => {}, | 3302 | else => {}, |
| 3289 | } | 3303 | } |
| 3290 | | 3304 | |