| ... | ... | @@ -5379,7 +5379,16 @@ pub fn cmdBuild(gpa: Allocator, arena: Allocator, args: []const []const u8) !voi |
| 5379 | 5379 | try thread_pool.init(.{ .allocator = gpa }); |
| 5380 | 5380 | defer thread_pool.deinit(); |
| 5381 | 5381 | |
| 5382 | | var http_client: std.http.Client = .{ .allocator = gpa }; |
| 5382 | // Dummy http client that is not actually used when only_core_functionality is enabled. |
| 5383 | // Prevents bootstrap from depending on a bunch of unnecessary stuff. |
| 5384 | const HttpClient = if (build_options.only_core_functionality) struct { |
| 5385 | allocator: Allocator, |
| 5386 | fn deinit(self: *@This()) void { |
| 5387 | _ = self; |
| 5388 | } |
| 5389 | } else std.http.Client; |
| 5390 | |
| 5391 | var http_client: HttpClient = .{ .allocator = gpa }; |
| 5383 | 5392 | defer http_client.deinit(); |
| 5384 | 5393 | |
| 5385 | 5394 | var unlazy_set: Package.Fetch.JobQueue.UnlazySet = .{}; |
| ... | ... | @@ -5656,6 +5665,7 @@ pub fn cmdBuild(gpa: Allocator, arena: Allocator, args: []const []const u8) !voi |
| 5656 | 5665 | if (code == 2) process.exit(2); |
| 5657 | 5666 | |
| 5658 | 5667 | if (code == 3) { |
| 5668 | if (build_options.only_core_functionality) process.exit(3); |
| 5659 | 5669 | // Indicates the configure phase failed due to missing lazy |
| 5660 | 5670 | // dependencies and stdout contains the hashes of the ones |
| 5661 | 5671 | // that are missing. |