| ... | ... | @@ -4,7 +4,19 @@ const math = std.math; |
| 4 | 4 | const is_test = builtin.is_test; |
| 5 | 5 | |
| 6 | 6 | pub const linkage: std.builtin.GlobalLinkage = if (builtin.is_test) .Internal else .Weak; |
| 7 | | pub const want_aeabi = builtin.cpu.arch.isARM() or builtin.cpu.arch.isThumb(); |
| 7 | pub const want_aeabi = switch (builtin.abi) { |
| 8 | .eabi, |
| 9 | .eabihf, |
| 10 | .musleabi, |
| 11 | .musleabihf, |
| 12 | .gnueabi, |
| 13 | .gnueabihf, |
| 14 | => switch (builtin.cpu.arch) { |
| 15 | .arm, .armeb, .thumb, .thumbeb => true, |
| 16 | else => false, |
| 17 | }, |
| 18 | else => false, |
| 19 | }; |
| 8 | 20 | pub const want_ppc_abi = builtin.cpu.arch.isPPC() or builtin.cpu.arch.isPPC64(); |
| 9 | 21 | pub const want_msvc_abi = builtin.abi == .msvc; |
| 10 | 22 | /// Example symbols: |