diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-02-20 18:31:17 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-02-20 18:31:17 -0500 |
| commit | 0f016b368de2ac93a298ab771646931329062fb5 (patch) | |
| tree | a605eb2971c749b1dd983c3cec16c25fedb96ab2 /test/tests.zig | |
| parent | 33c69d5cb6fd555e164dd92e5b9dcfac37d82672 (diff) | |
| download | zig-0f016b368de2ac93a298ab771646931329062fb5.tar.gz zig-0f016b368de2ac93a298ab771646931329062fb5.zip | |
support -mcpu=baseline, both in stage1 and stage2
See e381a42de9c0f0c5439a926b0ac99026a0373f49 for more details.
This is set up so that if we wish to make "baseline" depend on the
OS in the future, it is possible to do that.
Diffstat (limited to 'test/tests.zig')
| -rw-r--r-- | test/tests.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/tests.zig b/test/tests.zig index 3190126208..f12f7f83d4 100644 --- a/test/tests.zig +++ b/test/tests.zig @@ -135,13 +135,13 @@ const test_targets = blk: { TestTarget{ .target = Target.parse(.{ .arch_os_abi = "arm-linux-none", - .cpu = "generic+v8a", + .cpu_features = "generic+v8a", }) catch unreachable, }, TestTarget{ .target = Target.parse(.{ .arch_os_abi = "arm-linux-musleabihf", - .cpu = "generic+v8a", + .cpu_features = "generic+v8a", }) catch unreachable, .link_libc = true, }, @@ -149,7 +149,7 @@ const test_targets = blk: { //TestTarget{ // .target = Target.parse(.{ // .arch_os_abi = "arm-linux-gnueabihf", - // .cpu = "generic+v8a", + // .cpu_features = "generic+v8a", // }) catch unreachable, // .link_libc = true, //}, @@ -449,7 +449,7 @@ pub fn addPkgTests( const ArchTag = @TagType(builtin.Arch); if (test_target.disable_native and test_target.target.getOs() == builtin.os and - @as(ArchTag, test_target.target.getArch()) == @as(ArchTag, builtin.arch)) + test_target.target.getArch() == builtin.arch) { continue; } |
