diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-10-04 23:47:27 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-10-04 23:48:55 -0700 |
| commit | 6115cf22404467fd13d0290fc022d51d372d139a (patch) | |
| tree | 26c0bab951c81e89b5f0edcc5dc9f4b8e64df7db /lib/std/hash/crc.zig | |
| parent | 78902db68bbd400f6d84b65280c31d417105f2a8 (diff) | |
| download | zig-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.zig | 3 |
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; |
