aboutsummaryrefslogtreecommitdiff
path: root/lib/std/hash/crc.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-10-04 23:47:27 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-10-04 23:48:55 -0700
commit6115cf22404467fd13d0290fc022d51d372d139a (patch)
tree26c0bab951c81e89b5f0edcc5dc9f4b8e64df7db /lib/std/hash/crc.zig
parent78902db68bbd400f6d84b65280c31d417105f2a8 (diff)
downloadzig-6115cf22404467fd13d0290fc022d51d372d139a.tar.gz
zig-6115cf22404467fd13d0290fc022d51d372d139a.zip
migrate from `std.Target.current` to `@import("builtin").target`
closes #9388 closes #9321
Diffstat (limited to 'lib/std/hash/crc.zig')
-rw-r--r--lib/std/hash/crc.zig3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/std/hash/crc.zig b/lib/std/hash/crc.zig
index 0b7a9a7c51..3990287322 100644
--- a/lib/std/hash/crc.zig
+++ b/lib/std/hash/crc.zig
@@ -6,6 +6,7 @@
// still moderately fast just slow relative to the slicing approach.
const std = @import("../std.zig");
+const builtin = @import("builtin");
const debug = std.debug;
const testing = std.testing;
@@ -97,7 +98,7 @@ pub fn Crc32WithPoly(comptime poly: Polynomial) type {
};
}
-const please_windows_dont_oom = std.Target.current.os.tag == .windows;
+const please_windows_dont_oom = builtin.os.tag == .windows;
test "crc32 ieee" {
if (please_windows_dont_oom) return error.SkipZigTest;