Refresh build infrastructure scripts and cross-tool wrappers

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
2026-04-18 17:58:22 +01:00
parent 73d10558c1
commit 670529ae81
12 changed files with 129 additions and 80 deletions
+1 -12
View File
@@ -2,15 +2,4 @@
set -euo pipefail
script_dir="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)"
root_dir="$(CDPATH= cd -- "${script_dir}/.." && pwd)"
sysroot="${REDBEAR_REDOX_SYSROOT:-${root_dir}/prefix/x86_64-unknown-redox/sysroot}"
tool="${sysroot}/bin/x86_64-unknown-redox-c++"
if [ ! -x "${tool}" ]; then
echo "error: missing toolchain binary: ${tool}" >&2
echo "hint: run 'make prefix' or otherwise populate ${sysroot}" >&2
exit 1
fi
exec "${tool}" "$@"
exec "${script_dir}/redbear-run-tool" "$(basename "$0")" "$@"