Add cross-toolchain wrappers and update scripts

Red Bear OS Team
This commit is contained in:
2026-04-16 12:46:07 +01:00
parent 225f7882f9
commit aeac5a6d92
12 changed files with 154 additions and 7 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/usr/bin/env bash
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-ar"
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}" "$@"
+16
View File
@@ -0,0 +1,16 @@
#!/usr/bin/env bash
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}" "$@"
+16
View File
@@ -0,0 +1,16 @@
#!/usr/bin/env bash
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-gcc"
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}" "$@"
+16
View File
@@ -0,0 +1,16 @@
#!/usr/bin/env bash
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-ld"
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}" "$@"
+16
View File
@@ -0,0 +1,16 @@
#!/usr/bin/env bash
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-ranlib"
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}" "$@"