zig

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

commit c33cd370fc2a9cbb2b417530d8a2205bb94491d3 (tree)
parent ef2d237f2fbcca0f16b307dda01287e78363627a
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Wed, 19 Feb 2020 21:55:25 -0500

fix unit test for Target.parse

I think this is working correctly. Without also removing sse2 from the
feature set, sse gets added back into the set because sse2 is part of
the x86_64 baseline (which is the cpu provided) and sse2 depends on sse.

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

diff --git a/lib/std/target.zig b/lib/std/target.zig @@ -1258,7 +1258,7 @@ test "Target.parse" { { const target = (try Target.parse(.{ .arch_os_abi = "x86_64-linux-gnu", - .cpu = "x86_64-sse-avx-cx8", + .cpu = "x86_64-sse-sse2-avx-cx8", })).Cross; std.testing.expect(target.os == .linux);