| ... | ... | @@ -148,7 +148,7 @@ comptime { |
| 148 | 148 | |
| 149 | 149 | @export(@import("compiler_rt/clzsi2.zig").__clzsi2, .{ .name = "__clzsi2", .linkage = linkage }); |
| 150 | 150 | |
| 151 | | if (is_arm_arch and !is_arm_64 and !is_test) { |
| 151 | if (builtin.arch.isARM() and !is_test) { |
| 152 | 152 | @export(@import("compiler_rt/arm.zig").__aeabi_unwind_cpp_pr0, .{ .name = "__aeabi_unwind_cpp_pr0", .linkage = linkage }); |
| 153 | 153 | @export(@import("compiler_rt/arm.zig").__aeabi_unwind_cpp_pr1, .{ .name = "__aeabi_unwind_cpp_pr1", .linkage = linkage }); |
| 154 | 154 | @export(@import("compiler_rt/arm.zig").__aeabi_unwind_cpp_pr2, .{ .name = "__aeabi_unwind_cpp_pr2", .linkage = linkage }); |
| ... | ... | @@ -324,23 +324,3 @@ extern var __stack_chk_guard: usize = blk: { |
| 324 | 324 | buf[@sizeOf(usize) - 2] = '\n'; |
| 325 | 325 | break :blk @bitCast(usize, buf); |
| 326 | 326 | }; |
| 327 | | |
| 328 | | const is_arm_64 = switch (builtin.arch) { |
| 329 | | builtin.Arch.aarch64, |
| 330 | | builtin.Arch.aarch64_be, |
| 331 | | => true, |
| 332 | | else => false, |
| 333 | | }; |
| 334 | | |
| 335 | | const is_arm_arch = switch (builtin.arch) { |
| 336 | | builtin.Arch.arm, |
| 337 | | builtin.Arch.armeb, |
| 338 | | builtin.Arch.aarch64, |
| 339 | | builtin.Arch.aarch64_be, |
| 340 | | builtin.Arch.thumb, |
| 341 | | builtin.Arch.thumbeb, |
| 342 | | => true, |
| 343 | | else => false, |
| 344 | | }; |
| 345 | | |
| 346 | | const is_arm_32 = is_arm_arch and !is_arm_64; |