zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 9356cb1475606a7afd2e722af60f87ce2b39f9f8 (tree)
parent 4e6518badbe71d0c908457966e31dc52cb0529f8
Author: Raed Rizqie <raed.rizqie@gmail.com>
Date:   Sat,  6 Jul 2024 18:44:28 +0800

Allocate enough memory when building zig2

Diffstat:
MCMakeLists.txt | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt @@ -970,6 +970,10 @@ if(NOT "${ZIG_TARGET_DYNAMIC_LINKER}" STREQUAL "") list(APPEND ZIG_BUILD_ARGS "-Ddynamic-linker=${ZIG_TARGET_DYNAMIC_LINKER}") endif() +if(MINGW AND "${ZIG_HOST_TARGET_ARCH}" STREQUAL "x86") + list(APPEND ZIG_BUILD_ARGS --maxrss 7000000000) +endif() + add_custom_target(stage3 ALL DEPENDS "${PROJECT_BINARY_DIR}/stage3/bin/zig"