| ... | @@ -772,7 +772,10 @@ fn addCompilerMod(b: *std.Build, options: AddCompilerModOptions) *std.Build.Modu | ... | @@ -772,7 +772,10 @@ fn addCompilerMod(b: *std.Build, options: AddCompilerModOptions) *std.Build.Modu |
| 772 | fn addCompilerStep(b: *std.Build, options: AddCompilerModOptions) *std.Build.Step.Compile { | 772 | fn addCompilerStep(b: *std.Build, options: AddCompilerModOptions) *std.Build.Step.Compile { |
| 773 | const exe = b.addExecutable(.{ | 773 | const exe = b.addExecutable(.{ |
| 774 | .name = "zig", | 774 | .name = "zig", |
| 775 | .max_rss = 8_700_000_000, | 775 | // This number should never be raised. If the value is exceeded, then |
| | 776 | // it is considered a bug in the Zig project that building the |
| | 777 | // compiler takes more than 8G of memory. |
| | 778 | .max_rss = 8_000_000_000, |
| 776 | .root_module = addCompilerMod(b, options), | 779 | .root_module = addCompilerMod(b, options), |
| 777 | }); | 780 | }); |
| 778 | exe.stack_size = stack_size; | 781 | exe.stack_size = stack_size; |