| ... | ... | @@ -10,10 +10,29 @@ comptime { |
| 10 | 10 | const strong_linkage = if (is_test) builtin.GlobalLinkage.Internal else builtin.GlobalLinkage.Strong; |
| 11 | 11 | |
| 12 | 12 | switch (builtin.arch) { |
| 13 | | .i386, .x86_64 => @export(@import("compiler_rt/stack_probe.zig").zig_probe_stack, .{ .name = "__zig_probe_stack", .linkage = linkage }), |
| 14 | | .aarch64, .aarch64_be, .aarch64_32, .arm, .armeb, .thumb, .thumbeb => { |
| 15 | | @export(@import("compiler_rt/clear_cache.zig").clear_cache, .{ .name = "__clear_cache", .linkage = linkage }); |
| 13 | .i386, |
| 14 | .x86_64, |
| 15 | => @export(@import("compiler_rt/stack_probe.zig").zig_probe_stack, .{ |
| 16 | .name = "__zig_probe_stack", |
| 17 | .linkage = linkage, |
| 18 | }), |
| 19 | |
| 20 | .aarch64, |
| 21 | .aarch64_be, |
| 22 | .aarch64_32, |
| 23 | => @export(@import("compiler_rt/clear_cache.zig").clear_cache, .{ |
| 24 | .name = "__clear_cache", |
| 25 | .linkage = linkage, |
| 26 | }), |
| 27 | |
| 28 | .arm, .armeb, .thumb, .thumbeb => switch (builtin.os.tag) { |
| 29 | .linux => @export(@import("compiler_rt/clear_cache.zig").clear_cache, .{ |
| 30 | .name = "__clear_cache", |
| 31 | .linkage = linkage, |
| 32 | }), |
| 33 | else => {}, |
| 16 | 34 | }, |
| 35 | |
| 17 | 36 | else => {}, |
| 18 | 37 | } |
| 19 | 38 | |