From af2af818a6226ad55ac4e18cdb1e0c2b6963c679 Mon Sep 17 00:00:00 2001 From: Jesper Stemann Andersen Date: Wed, 27 Nov 2024 22:14:24 +0100 Subject: [PATCH] Enables build for *-linux-musl (#1627) Also contributes to being able to build for *-w64-mingw32. Cf. https://github.com/JuliaPackaging/Yggdrasil/pull/9761 --- mlx/backend/common/compiled_cpu.cpp | 2 +- mlx/utils.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mlx/backend/common/compiled_cpu.cpp b/mlx/backend/common/compiled_cpu.cpp index cba6325c8..853617f5a 100644 --- a/mlx/backend/common/compiled_cpu.cpp +++ b/mlx/backend/common/compiled_cpu.cpp @@ -47,7 +47,7 @@ bool compile_available_for_device(const Device& device) { } // namespace detail std::string get_temp_file(const std::string& name) { - return std::filesystem::temp_directory_path().append(name); + return std::filesystem::temp_directory_path().append(name).string(); } // Return a pointer to a compiled function diff --git a/mlx/utils.cpp b/mlx/utils.cpp index 847432370..73ab4bf2e 100644 --- a/mlx/utils.cpp +++ b/mlx/utils.cpp @@ -152,7 +152,7 @@ std::ostream& operator<<(std::ostream& os, int8_t x) { } std::ostream& operator<<(std::ostream& os, uint8_t x) { - os << static_cast(x); + os << static_cast(x); return os; }