MinGW support (#1806)

* Changed /bin/bash to bash for generating compiling preamble

* Fix wrt jit_compiler mingw like msvc wrt. WEXITSTATUS

* Solved ambiguity wrt. bernoulli test shape

* Disabled distributed/ring on Windows

* Fixed jit_compiler command wrt. MinGW

* Extended jit_compiler patch wrt. WEXITSTATUS to FreeBSD
This commit is contained in:
Jesper Stemann Andersen
2025-02-01 21:40:06 +01:00
committed by GitHub
parent 80c863b972
commit 2d8e667400
5 changed files with 6 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
if(MLX_BUILD_CPU)
if(MLX_BUILD_CPU AND NOT WIN32)
target_sources(mlx PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/ring.cpp)
else()
target_sources(mlx PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/no_ring.cpp)