mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 22:35:24 +00:00
Add option to override default stack size in build system.
This commit is contained in:
parent
81890e30e2
commit
c796c4528e
@ -1296,6 +1296,9 @@ pub const LibExeObjStep = struct {
|
||||
|
||||
subsystem: ?builtin.SubSystem = null,
|
||||
|
||||
/// Overrides the default stack size
|
||||
stack_size: ?u64 = null,
|
||||
|
||||
const LinkObject = union(enum) {
|
||||
StaticPath: []const u8,
|
||||
OtherStep: *LibExeObjStep,
|
||||
@ -2029,6 +2032,11 @@ pub const LibExeObjStep = struct {
|
||||
try zig_args.append(@tagName(builder.color));
|
||||
}
|
||||
|
||||
if (self.stack_size) |stack_size| {
|
||||
try zig_args.append("--stack");
|
||||
try zig_args.append(try std.fmt.allocPrint(builder.allocator, "{}", .{stack_size}));
|
||||
}
|
||||
|
||||
if (self.root_src) |root_src| try zig_args.append(root_src.getPath(builder));
|
||||
|
||||
var prev_has_extra_flags = false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user