authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-02-19 21:55:25-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-02-19 21:55:25-05:00
logc33cd370fc2a9cbb2b417530d8a2205bb94491d3
treed713fab326b3931308e65413382ba0241a7c72f1
parentef2d237f2fbcca0f16b307dda01287e78363627a
signaturelock-open Commit is signed but in an unrecognized format.

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.

1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/target.zig+1-1
...@@ -1258,7 +1258,7 @@ test "Target.parse" {...@@ -1258,7 +1258,7 @@ test "Target.parse" {
1258 {1258 {
1259 const target = (try Target.parse(.{1259 const target = (try Target.parse(.{
1260 .arch_os_abi = "x86_64-linux-gnu",1260 .arch_os_abi = "x86_64-linux-gnu",
1261 .cpu = "x86_64-sse-avx-cx8",1261 .cpu = "x86_64-sse-sse2-avx-cx8",
1262 })).Cross;1262 })).Cross;
12631263
1264 std.testing.expect(target.os == .linux);1264 std.testing.expect(target.os == .linux);