diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-05-07 21:23:51 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-05-07 21:23:51 -0700 |
| commit | f69cf930648999cedd0716c6804f46b0c1fbf504 (patch) | |
| tree | 6857eaaadf5692b2c0ce6adf97f33c30a437a41a /src/main.zig | |
| parent | d577654e66e3a69592df2a37817260b59a2a190b (diff) | |
| download | zig-f69cf930648999cedd0716c6804f46b0c1fbf504.tar.gz zig-f69cf930648999cedd0716c6804f46b0c1fbf504.zip | |
std: start code increases stack size as appropriate on linux
closes #8708
Diffstat (limited to 'src/main.zig')
| -rw-r--r-- | src/main.zig | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/main.zig b/src/main.zig index ae7c8995a3..01be971602 100644 --- a/src/main.zig +++ b/src/main.zig @@ -180,18 +180,6 @@ pub fn mainArgs(gpa: *Allocator, arena: *Allocator, args: []const []const u8) !v defer log_scopes.deinit(gpa); - if (@import("builtin").target.os.tag == .linux) { - // Linux does not respect the stack size specified in the ELF, so we - // have to do this at runtime. TODO move this code to start.zig using - // the GNU_STACK program header. - std.os.setrlimit(.STACK, .{ - .cur = 16 * 1024 * 1024, - .max = 16 * 1024 * 1024, - }) catch |err| { - warn("unable to increase stack size to 16 MiB", .{}); - }; - } - const cmd = args[1]; const cmd_args = args[2..]; if (mem.eql(u8, cmd, "build-exe")) { |
