diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-03-31 10:48:48 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-03-31 10:48:48 -0400 |
| commit | 0e372ccff511a9e286949328037d87af64e31875 (patch) | |
| tree | e3afe2b2dca825295dc842f2f1d6804886c8fa79 /lib/std/special/compiler_rt.zig | |
| parent | e9c49f423d981dc5f4826f284226f312d51b33cc (diff) | |
| download | zig-0e372ccff511a9e286949328037d87af64e31875.tar.gz zig-0e372ccff511a9e286949328037d87af64e31875.zip | |
clean up the duplicate export logic for __clear_cache
Diffstat (limited to 'lib/std/special/compiler_rt.zig')
| -rw-r--r-- | lib/std/special/compiler_rt.zig | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/lib/std/special/compiler_rt.zig b/lib/std/special/compiler_rt.zig index cf860dfcb0..2a454b19dc 100644 --- a/lib/std/special/compiler_rt.zig +++ b/lib/std/special/compiler_rt.zig @@ -17,27 +17,12 @@ comptime { .linkage = linkage, }), - .aarch64, - .aarch64_be, - .aarch64_32, - .riscv32, - .riscv64, - => @export(@import("compiler_rt/clear_cache.zig").clear_cache, .{ - .name = "__clear_cache", - .linkage = linkage, - }), - - .arm, .armeb, .thumb, .thumbeb => switch (builtin.os.tag) { - .linux => @export(@import("compiler_rt/clear_cache.zig").clear_cache, .{ - .name = "__clear_cache", - .linkage = linkage, - }), - else => {}, - }, - else => {}, } + // __clear_cache manages its own logic about whether to be exported or not. + _ = @import("compiler_rt/clear_cache.zig").clear_cache; + @export(@import("compiler_rt/compareXf2.zig").__lesf2, .{ .name = "__lesf2", .linkage = linkage }); @export(@import("compiler_rt/compareXf2.zig").__ledf2, .{ .name = "__ledf2", .linkage = linkage }); @export(@import("compiler_rt/compareXf2.zig").__letf2, .{ .name = "__letf2", .linkage = linkage }); |
