diff options
| author | Takeshi Yoneda <takeshi@tetrate.io> | 2021-07-27 08:59:34 +0900 |
|---|---|---|
| committer | Takeshi Yoneda <takeshi@tetrate.io> | 2021-07-27 09:01:00 +0900 |
| commit | 1e20a62126e66d0306a6db01b3a2ffd6b946b9b6 (patch) | |
| tree | f324d0497c78a25144c06f4e2a9c69a2e3a5a658 /lib/std/Thread.zig | |
| parent | fc105f268149b195ea4a4189da59d40e96e455b4 (diff) | |
| download | zig-1e20a62126e66d0306a6db01b3a2ffd6b946b9b6.tar.gz zig-1e20a62126e66d0306a6db01b3a2ffd6b946b9b6.zip | |
WASI,libc: enable tests.
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
Diffstat (limited to 'lib/std/Thread.zig')
| -rw-r--r-- | lib/std/Thread.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/Thread.zig b/lib/std/Thread.zig index 58a409c64e..9553cd429e 100644 --- a/lib/std/Thread.zig +++ b/lib/std/Thread.zig @@ -24,7 +24,7 @@ pub const Condition = @import("Thread/Condition.zig"); pub const spinLoopHint = @compileError("deprecated: use std.atomic.spinLoopHint"); -pub const use_pthreads = target.os.tag != .windows and std.builtin.link_libc; +pub const use_pthreads = target.os.tag != .windows and std.Target.current.os.tag != .wasi and std.builtin.link_libc; const Thread = @This(); const Impl = if (target.os.tag == .windows) |
