Commit c33cd370fc

Andrew Kelley <andrew@ziglang.org>
2020-02-20 03:55:25
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 parent ef2d237
Changed files (1)
lib
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);