zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 84fdeb47a39cbd1a32c670813fe6ef5a8e88ebac (tree)
parent 23fd15fd767d93ee5c8404a3b81b20b1a5f79ddb
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Mon, 17 May 2021 14:18:30 -0700

compiler-rt: fix usage of builtin

In this branch std.builtin and `@import("builtin")` are rearranged, fix
a trivial compile error due to the conflict with master.

Diffstat:
Mlib/std/special/compiler_rt/extendXfYf2_test.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/std/special/compiler_rt/extendXfYf2_test.zig b/lib/std/special/compiler_rt/extendXfYf2_test.zig @@ -96,7 +96,7 @@ test "extendhfsf2" { try test__extendhfsf2(0x7f00, 0x7fe00000); // sNaN // On x86 the NaN becomes quiet because the return is pushed on the x87 // stack due to ABI requirements - if (builtin.arch != .i386 and builtin.os.tag == .windows) + if (builtin.target.cpu.arch != .i386 and builtin.target.os.tag == .windows) try test__extendhfsf2(0x7c01, 0x7f802000); // sNaN try test__extendhfsf2(0, 0); // 0