mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
Allocate enough memory when building zig2
This commit is contained in:
parent
4e6518badb
commit
9356cb1475
1 changed files with 4 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue