You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Restrict the compiler self-build RSS tripwire to compiler self-builds; ordinary application builds must not inherit it #1665
The 1 GiB per-target RSS regression guard from #679 is being applied to ordinary downstream applications. That guard is intended for the compiler compiling the compiler, not for users compiling their applications.
Observed failure
Building WIPE, a separate With + raylib application, with with v0.15.2.1 on macOS/arm64:
$ with build
[time] wipe 67.6s
[times] total 67.6s across 1 executed; slowest: wipe 67.6s; peak rss 1267M (wipe)
error: rss tripwire: target 'wipe' peaked at 1266M (limit 1024M, #679)
[build] :wipe wall 68.6s
The build returned failure because of the RSS check, rather than a language error or operating-system allocation failure. The application had bounded storage expressed as repeated fixed-array initializers: 512 enemies, 96 bullets, 2,048 particles, and 64 pulses. Replacing these with preallocated vectors avoided the guard, but applications should not need to change a valid storage design to satisfy an internal compiler self-build budget. This is an observed application failure, not yet a minimized standalone reproducer.
if timed_rss[tri] > 1073741824:
// Emit error and return nonzero.
There is no compiler-self-build scope check or configurable threshold in this block. docs/perf/README.md describes changing the limit through a source edit.
Expected behavior
Preserve the memory-regression guard for the compiler's own self-build/verification workflow.
Do not impose that internal 1 GiB budget on ordinary with build application targets.
Keep RSS measurement/reporting available without making it an implicit application build failure.
If application memory budgets are supported, make them explicit, opt-in, and configurable. Raising the global hard-coded threshold is not the scope fix.
Acceptance criteria
A successful downstream application compilation exceeding 1 GiB RSS returns success unless that project explicitly requested a memory budget.
Compiler self-build verification still fails when its configured regression budget is exceeded.
Regression coverage verifies both scopes without requiring every test run to allocate more than 1 GiB (exercise the policy with recorded/synthetic measurements).
Document the distinction between compiler self-build enforcement and ordinary application RSS reporting.
Activity
build: scope RSS regression budgets to explicitly configured targets
build: restrict the RSS tripwire to explicit target budgets (#1665) (#…