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:
Jesper Stemann Andersen 2024-11-27 22:14:24 +01:00 committed by GitHub
parent 698e63a608
commit af2af818a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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<uint>(x);
os << static_cast<unsigned int>(x);
return os;
}