mirror of
				https://github.com/ml-explore/mlx.git
				synced 2025-10-31 07:58: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:
		 Jesper Stemann Andersen
					Jesper Stemann Andersen
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							698e63a608
						
					
				
				
					commit
					af2af818a6
				
			| @@ -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 | ||||
|   | ||||
| @@ -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; | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user