mirror of
https://github.com/ziglang/zig.git
synced 2025-12-16 03:03:09 +00:00
update_cpu_features tool: work around stage1 bug
This works around a stage1 compiler bug resulting in a segfault when trying to use the tool.
This commit is contained in:
parent
55c6a784a5
commit
0961c1975a
@ -818,15 +818,14 @@ 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(.{}, processOneTarget, .{
|
||||
Job{
|
||||
.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,
|
||||
},
|
||||
});
|
||||
const job = Job{
|
||||
.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,
|
||||
};
|
||||
threads[i] = try std.Thread.spawn(.{}, processOneTarget, .{job});
|
||||
}
|
||||
for (threads) |thread| {
|
||||
thread.join();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user