Files
Snapintosh/tools/test-cpu-release.py
Acelogic 1510d8c6ce Snapintosh public release
An EL2 monitor/hypervisor and toolchain that boots macOS 27 on the ASUS A16
(Snapdragon X2 Elite), with an Adreno Metal plug-in and IOGPU kext, and
air2ir3, an AIR to Mesa ir3 shader compiler.

MIT, with GPL-2.0 components listed in LICENSE and THIRD_PARTY_NOTICES.md.
No Apple, Qualcomm, ASUS or Microsoft binaries are included.
2026-10-21 21:26:36 -04:00

13 lines
507 B
Python
Executable File

#!/usr/bin/env python3
# SPDX-License-Identifier: MIT
import subprocess
import tempfile
from pathlib import Path
ROOT=Path(__file__).resolve().parents[1]
with tempfile.TemporaryDirectory() as directory:
binary=str(Path(directory)/'cpu-release')
subprocess.run(['clang','-std=gnu11','-O1','-g','-fsanitize=address,undefined',
'-Icompat','tools/test-cpu-release.c','compat/cpu-release.c','-o',binary],
cwd=ROOT,check=True,timeout=30)
subprocess.run([binary],check=True,timeout=30)