| ... | ... | @@ -11,6 +11,7 @@ const InstallDirectoryOptions = std.build.InstallDirectoryOptions; |
| 11 | 11 | const assert = std.debug.assert; |
| 12 | 12 | |
| 13 | 13 | const zig_version = std.builtin.Version{ .major = 0, .minor = 10, .patch = 0 }; |
| 14 | const stack_size = 32 * 1024 * 1024; |
| 14 | 15 | |
| 15 | 16 | pub fn build(b: *Builder) !void { |
| 16 | 17 | b.setPreferredReleaseMode(.ReleaseFast); |
| ... | ... | @@ -41,6 +42,7 @@ pub fn build(b: *Builder) !void { |
| 41 | 42 | const toolchain_step = b.step("test-toolchain", "Run the tests for the toolchain"); |
| 42 | 43 | |
| 43 | 44 | var test_cases = b.addTest("src/test.zig"); |
| 45 | test_cases.stack_size = stack_size; |
| 44 | 46 | test_cases.setBuildMode(mode); |
| 45 | 47 | test_cases.addPackagePath("test_cases", "test/cases.zig"); |
| 46 | 48 | test_cases.single_threaded = single_threaded; |
| ... | ... | @@ -141,6 +143,7 @@ pub fn build(b: *Builder) !void { |
| 141 | 143 | }; |
| 142 | 144 | |
| 143 | 145 | const exe = b.addExecutable("zig", main_file); |
| 146 | exe.stack_size = stack_size; |
| 144 | 147 | exe.strip = strip; |
| 145 | 148 | exe.build_id = b.option(bool, "build-id", "Include a build id note") orelse false; |
| 146 | 149 | exe.install(); |