major: Switch to forward slashes(+more) to fix compilation on Linux (#1403)

Notably also adds some metadata files for NixOS 

* add support for linux clang cross compiles

* add linux clang instructions

* un-capitalize Mob.horse.*

* update the description in flake.nix

---------

Co-authored-by: Loki <lokirautio@gmail.com>
This commit is contained in:
Riley M.
2026-04-14 16:47:37 -05:00
committed by GitHub
parent f78dec6e00
commit c0da06e4ee
874 changed files with 4256 additions and 3544 deletions

View File

@@ -5,8 +5,8 @@ set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
if(NOT WIN32)
message(FATAL_ERROR "This CMake build currently supports Windows only.")
if(NOT WIN32 AND NOT CMAKE_CROSSCOMPILING)
message(FATAL_ERROR "This CMake build currently supports Windows only. For cross-compilation from Linux, use the clang-cl toolchain.")
endif()
if(NOT CMAKE_SIZEOF_VOID_P EQUAL 8)