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