Skip to content

Commit

Permalink
fixing macos and windows CI ?
Browse files Browse the repository at this point in the history
  • Loading branch information
Kbz-8 committed Sep 14, 2024
1 parent 14b42a7 commit 9631305
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions runtime/Includes/PreCompiled.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@
#include <iterator>
#include <stb_truetype.h>
#include <variant>
#if defined(MLX_PLAT_MACOS) || defined(MLX_PLAT_LINUX) || defined(MLX_PLAT_UNIX)
#include <math.h> // sincos
#endif

#ifdef MLX_COMPILER_CLANG
#pragma clang diagnostic push
Expand Down
6 changes: 4 additions & 2 deletions xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,15 @@ target("mlx")
add_options("images_optimized")
add_options("force_integrated_gpu")
add_options("graphics_memory_dump")
add_includedirs("runtime/Includes", "runtime/Sources", "third_party")
add_options("profiler")
add_options("force_wayland")
add_includedirs("runtime/Includes", "runtime/Sources", "includes", "third_party")

set_pcxxheader("runtime/Sources/PreCompiled.h")

add_defines("MLX_BUILD", "SDL_MAIN_HANDLED")

add_files("src/**.cpp")
add_files("runtime/Sources/**.cpp")

add_packages("libsdl")

Expand Down

0 comments on commit 9631305

Please sign in to comment.