#!/bin/bash
# Keep compiler/linker memory pressure expendable on Linux build hosts.
#
# Bash preserves Cargo's hyphenated CARGO_BIN_EXE_* environment names; dash
# (the Sparks' /bin/sh) drops them before rustc can expand env! in tests.
#
# ssh.service is intentionally OOM-protected on the Sparks. Interactive agent
# processes used to inherit that protection all the way into rustc and GNU ld,
# allowing a linker fan-out to exhaust unified memory while the kernel killed
# custody and the user session instead. Cargo's RUSTC_WRAPPER contract passes
# the real rustc executable as argv[1], so exec "$@" preserves the invocation
# after changing only this compiler process tree's OOM preference.
if [; then
if ! ; then
fi
fi