Files
betterxen/scripts/bootstrap.sh
T
Ranveer Soni 96cff7c66e feat: establish native RDNA-to-Metal recompilation foundation
Add gfx1030 decoding, semantic validation, Metal shader generation, and an independent CPU interpreter for three reproducible compute fixtures. Include native Metal tests, LLVM fixture verification, and the existing CI and Phase 01 handoff.

Verified formatting, all-features Clippy and tests, LLVM decoding, native ARM64 linkage, and all three demo fixtures with Metal API and shader validation enabled.

Signed-off-by: Ranveer Soni <git@ranveersoni.me>
2026-11-22 13:41:55 +05:30

29 lines
757 B
Bash
Executable File

#!/bin/sh
# SPDX-License-Identifier: GPL-3.0-or-later
set -eu
if [ "$(uname -m)" != arm64 ] || [ "$(arch)" != arm64 ] ||
[ "$(sysctl -n sysctl.proc_translated)" != 0 ]; then
printf '%s\n' 'Run on native Apple Silicon macOS.' >&2
exit 1
fi
rustc -vV
cargo --version
xcodebuild -version
xcrun --find metal
xcrun metal --version
if command -v brew >/dev/null 2>&1; then
llvm_bin=${LLVM_BIN:-$(brew --prefix llvm)/bin}
else
llvm_bin=${LLVM_BIN:-}
fi
for tool in llvm-mc llvm-objcopy llvm-objdump; do
if [ -n "$llvm_bin" ] && [ -x "$llvm_bin/$tool" ]; then
"$llvm_bin/$tool" --version | head -1
else
printf '%s\n' "Optional fixture tooling: set LLVM_BIN to a native LLVM bin directory containing $tool."
fi
done