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>
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.