authorgravatar for raed.rizqie@gmail.comRaed Rizqie <raed.rizqie@gmail.com> 2024-07-06 18:44:28+08:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-07-16 00:41:24-07:00
log9356cb1475606a7afd2e722af60f87ce2b39f9f8
treeb3d106d1022e8d88158c0aba611b28dcc25758fb
parent4e6518badbe71d0c908457966e31dc52cb0529f8

Allocate enough memory when building zig2


1 files changed, 4 insertions(+), 0 deletions(-)

CMakeLists.txt+4
......@@ -970,6 +970,10 @@ if(NOT "${ZIG_TARGET_DYNAMIC_LINKER}" STREQUAL "")
970970 list(APPEND ZIG_BUILD_ARGS "-Ddynamic-linker=${ZIG_TARGET_DYNAMIC_LINKER}")
971971endif()
972972
973if(MINGW AND "${ZIG_HOST_TARGET_ARCH}" STREQUAL "x86")
974 list(APPEND ZIG_BUILD_ARGS --maxrss 7000000000)
975endif()
976
973977
974978add_custom_target(stage3 ALL
975979 DEPENDS "${PROJECT_BINARY_DIR}/stage3/bin/zig"