mirror of
https://github.com/MacosPorters/betterxen.git
synced 2026-11-26 14:50:43 +00:00
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>
29 lines
757 B
Bash
Executable File
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
|