mirror of
https://github.com/ml-explore/mlx.git
synced 2025-07-20 16:11:14 +08:00
Enables build for *-linux-musl (#1627)
Also contributes to being able to build for *-w64-mingw32. Cf. https://github.com/JuliaPackaging/Yggdrasil/pull/9761
This commit is contained in:
parent
698e63a608
commit
af2af818a6
@ -47,7 +47,7 @@ bool compile_available_for_device(const Device& device) {
|
|||||||
} // namespace detail
|
} // namespace detail
|
||||||
|
|
||||||
std::string get_temp_file(const std::string& name) {
|
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
|
// Return a pointer to a compiled function
|
||||||
|
@ -152,7 +152,7 @@ std::ostream& operator<<(std::ostream& os, int8_t x) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::ostream& operator<<(std::ostream& os, uint8_t x) {
|
std::ostream& operator<<(std::ostream& os, uint8_t x) {
|
||||||
os << static_cast<uint>(x);
|
os << static_cast<unsigned int>(x);
|
||||||
return os;
|
return os;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user