Fix compilation error on Windows (#1844)

This commit is contained in:
Cheng 2025-02-11 12:53:05 +09:00 committed by GitHub
parent a5ededf1c3
commit 142b77751d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -54,7 +54,7 @@ struct VisualStudioInfo {
std::string value = line.substr(pos + 1);
if (name == "LIB") {
libpaths = str_split(value, ';');
} else if (name == "VCToolsInstallDir") {
} else if (name == "VCToolsInstallDir" || name == "VCTOOLSINSTALLDIR") {
cl_exe = fmt::format("{0}\\bin\\Host{1}\\{1}\\cl.exe", value, arch);
}
}

View File

@ -4,6 +4,7 @@
#include <algorithm>
#include <cmath>
#include <complex>
#include <functional>
namespace mlx::core::simd {
template <typename T, int N>