diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-02-19 16:21:36 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-03-15 10:48:12 -0700 |
| commit | cb094700631ea1ae238ea678c192ce4f85fbecc0 (patch) | |
| tree | b79eb3a4bd26ce880829be3665470c3049d0fe53 /src | |
| parent | 96d798db8b704a2fd367e58a19d6fe853a8a76a8 (diff) | |
| download | zig-cb094700631ea1ae238ea678c192ce4f85fbecc0.tar.gz zig-cb094700631ea1ae238ea678c192ce4f85fbecc0.zip | |
zig build: add a -j<N> option for limiting concurrency
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.zig b/src/main.zig index dd0faa628c..3a06d0272f 100644 --- a/src/main.zig +++ b/src/main.zig @@ -2999,7 +2999,7 @@ fn buildOutputType( defer zig_lib_directory.handle.close(); var thread_pool: ThreadPool = undefined; - try thread_pool.init(gpa); + try thread_pool.init(.{ .allocator = gpa }); defer thread_pool.deinit(); var libc_installation: ?LibCInstallation = null; @@ -4201,7 +4201,7 @@ pub fn cmdBuild(gpa: Allocator, arena: Allocator, args: []const []const u8) !voi .basename = exe_basename, }; var thread_pool: ThreadPool = undefined; - try thread_pool.init(gpa); + try thread_pool.init(.{ .allocator = gpa }); defer thread_pool.deinit(); var cleanup_build_runner_dir: ?fs.Dir = null; |
