From 9631305e35049ebccb96f3113153c0bd60fd6fe6 Mon Sep 17 00:00:00 2001 From: Kbz-8 Date: Sat, 14 Sep 2024 12:53:29 +0200 Subject: [PATCH] fixing macos and windows CI ? --- runtime/Includes/PreCompiled.h | 3 +++ xmake.lua | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/runtime/Includes/PreCompiled.h b/runtime/Includes/PreCompiled.h index c50a067..35311db 100644 --- a/runtime/Includes/PreCompiled.h +++ b/runtime/Includes/PreCompiled.h @@ -47,6 +47,9 @@ #include #include #include +#if defined(MLX_PLAT_MACOS) || defined(MLX_PLAT_LINUX) || defined(MLX_PLAT_UNIX) + #include // sincos +#endif #ifdef MLX_COMPILER_CLANG #pragma clang diagnostic push diff --git a/xmake.lua b/xmake.lua index 13d7be0..135f6b8 100644 --- a/xmake.lua +++ b/xmake.lua @@ -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")