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/Thread/Futex.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/Thread/Futex.zig')
| -rw-r--r-- | lib/std/Thread/Futex.zig | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/std/Thread/Futex.zig b/lib/std/Thread/Futex.zig index 8411041166..7c73d54017 100644 --- a/lib/std/Thread/Futex.zig +++ b/lib/std/Thread/Futex.zig @@ -4,10 +4,11 @@ //! Using Futex, other Thread synchronization primitives can be built which efficiently wait for cross-thread events or signals. const std = @import("../std.zig"); +const builtin = @import("builtin"); const Futex = @This(); -const target = std.Target.current; -const single_threaded = std.builtin.single_threaded; +const target = builtin.target; +const single_threaded = builtin.single_threaded; const assert = std.debug.assert; const testing = std.testing; @@ -70,7 +71,7 @@ else if (target.os.tag == .linux) LinuxFutex else if (target.isDarwin()) DarwinFutex -else if (std.builtin.link_libc) +else if (builtin.link_libc) PosixFutex else UnsupportedFutex; |
