aboutsummaryrefslogtreecommitdiff
path: root/tools/update_cpu_features.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-03-02 14:59:34 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-03-02 14:59:34 -0700
commit70d100b1e2997e9a8aaeb50840052b2571800a5a (patch)
treeca08bd552d492344c915356f73dfd5580332078b /tools/update_cpu_features.zig
parent68c00122b10a7364c52a59f56761942525498ce8 (diff)
downloadzig-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.zig4
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();