a789495a98
CI / Quality Guardrails (push) Waiting to run
CI / Build & Test (macos-latest) (push) Waiting to run
CI / Build & Test (ubuntu-latest) (push) Waiting to run
CI / Build & Test (windows-latest) (push) Waiting to run
CI / Format (push) Waiting to run
CI / PowerShell Syntax (push) Waiting to run
CI / Windows Cross-Target Check (Linux) (push) Waiting to run
FreeBSD Smoke / FreeBSD Smoke (x86_64) (push) Has been cancelled
19 lines
1.0 KiB
TOML
19 lines
1.0 KiB
TOML
[build]
|
|
# Set RUSTC_WRAPPER=sccache in your shell env; no hardcoded path needed.
|
|
# CI overrides this file, so leaving rustc-wrapper unset here is safe.
|
|
# Local fast-linker selection is handled by scripts/dev_cargo.sh so we don't
|
|
# hard-force a linker mode that may be broken on a contributor machine.
|
|
#
|
|
# This is a conservative *static fallback* for direct `cargo` invocations. The
|
|
# recommended build path (selfdev build -> scripts/dev_cargo.sh) ignores this
|
|
# and instead sizes the job count from currently-available memory, so several
|
|
# concurrent builds on one machine self-throttle instead of all assuming the
|
|
# full core count and tripping earlyoom/OOM. Override either path explicitly
|
|
# with CARGO_BUILD_JOBS / JCODE_BUILD_JOBS.
|
|
#
|
|
# The largest rustc unit (jcode-base) peaks at ~1.6 GiB RSS (was 2.5-3 GiB as a
|
|
# monolith), so 4 jobs (~6-7 GiB) keeps a single direct build comfortably
|
|
# memory-safe on a ~15 GiB machine while staying parallel. The adaptive
|
|
# dev_cargo.sh path uses more cores when memory allows.
|
|
jobs = 4
|