2 Commits

Author SHA1 Message Date
6fbb25e4de build(linux): build the portable root-signature and host CPU tests on every OS
src/root_signature.h says it compiles on Linux CI, and src/host_cpu.cpp
already has its non-Windows branches (cpuid.h, getenv), but both tests
were inside the Windows-only block of runtime/CMakeLists.txt, so Linux
and macOS never ran them. They now build everywhere. MSVC keeps its /W4
/permissive- /utf-8 and /OPT:NOREF; host_cpu_test sets
LEONIDA_SKIP_CPU_CHECK with setenv/unsetenv off Windows.

On Ubuntu 26.04 with gcc 15.2 and clang 21.1: root_signature 56/56
checks pass, host_cpu all pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 20:51:04 -05:00
ad6e5d6bbe gta6rt: --init/--run stop with a clear message on a host without AVX
The game runs AVX code from its TLS callbacks on, so a CPU or OS without
AVX (a QEMU qemu64 guest) died with a bare 0xC000001D. Check CPUID.1
AVX/OSXSAVE and XCR0 YMM state first, print one line and exit 4 (3 is
LEONIDA_UNIMPLEMENTED=stop). --dry-run is unchanged and
LEONIDA_SKIP_CPU_CHECK=1 skips the check.

AI-assisted.
2026-11-23 23:07:51 +01:00