diff options
Diffstat (limited to 'lib/std/special/build_runner.zig')
| -rw-r--r-- | lib/std/special/build_runner.zig | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/std/special/build_runner.zig b/lib/std/special/build_runner.zig index b6e8f27b12..7d9ac17499 100644 --- a/lib/std/special/build_runner.zig +++ b/lib/std/special/build_runner.zig @@ -41,8 +41,18 @@ pub fn main() !void { warn("Expected third argument to be cache root directory path\n", .{}); return error.InvalidArgs; }; + const global_cache_root = nextArg(args, &arg_idx) orelse { + warn("Expected third argument to be global cache root directory path\n", .{}); + return error.InvalidArgs; + }; - const builder = try Builder.create(allocator, zig_exe, build_root, cache_root); + const builder = try Builder.create( + allocator, + zig_exe, + build_root, + cache_root, + global_cache_root, + ); defer builder.destroy(); var targets = ArrayList([]const u8).init(allocator); |
