Args including and after -- get passed to build runner directly

This commit is contained in:
Krzysztof Wolicki 2024-07-12 16:05:23 +02:00 committed by Andrew Kelley
parent 1d20ff11d7
commit 30ef0ed054

View File

@ -4852,6 +4852,11 @@ fn cmdBuild(gpa: Allocator, arena: Allocator, args: []const []const u8) !void {
i += 1;
child_argv.items[argv_index_seed] = args[i];
continue;
} else if (mem.eql(u8, arg, "--")) {
// The rest of the args are supposed to get passed onto
// build runner's `build.args`
try child_argv.appendSlice(args[i..]);
break;
}
}
try child_argv.append(arg);