diff --git a/CMakeLists.txt b/CMakeLists.txt index 195bfe04c265d5adef475df81347b81628775976..c074da95887c8091a9f383dfbcd30b5dde35164e 100644 --- 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"