diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-03-02 14:59:34 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-03-02 14:59:34 -0700 |
| commit | 70d100b1e2997e9a8aaeb50840052b2571800a5a (patch) | |
| tree | ca08bd552d492344c915356f73dfd5580332078b /tools/update_cpu_features.zig | |
| parent | 68c00122b10a7364c52a59f56761942525498ce8 (diff) | |
| download | zig-70d100b1e2997e9a8aaeb50840052b2571800a5a.tar.gz zig-70d100b1e2997e9a8aaeb50840052b2571800a5a.zip | |
update to latest std Thread API
Diffstat (limited to 'tools/update_cpu_features.zig')
| -rw-r--r-- | tools/update_cpu_features.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/update_cpu_features.zig b/tools/update_cpu_features.zig index 9f10dda4be..7e3c636c31 100644 --- a/tools/update_cpu_features.zig +++ b/tools/update_cpu_features.zig @@ -786,13 +786,13 @@ pub fn main() anyerror!void { } else { var threads = try arena.alloc(*std.Thread, llvm_targets.len); for (llvm_targets) |llvm_target, i| { - threads[i] = try std.Thread.spawn(Job{ + threads[i] = try std.Thread.spawn(processOneTarget, .{ .llvm_tblgen_exe = llvm_tblgen_exe, .llvm_src_root = llvm_src_root, .zig_src_dir = zig_src_dir, .root_progress = root_progress, .llvm_target = llvm_target, - }, processOneTarget); + }); } for (threads) |thread| { thread.wait(); |
