diff --git a/mlx/backend/cpu/jit_compiler.cpp b/mlx/backend/cpu/jit_compiler.cpp index 0a7ff3eb0..632e71fca 100644 --- a/mlx/backend/cpu/jit_compiler.cpp +++ b/mlx/backend/cpu/jit_compiler.cpp @@ -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); } } diff --git a/mlx/backend/cpu/simd/base_simd.h b/mlx/backend/cpu/simd/base_simd.h index c1e867811..37fc576a0 100644 --- a/mlx/backend/cpu/simd/base_simd.h +++ b/mlx/backend/cpu/simd/base_simd.h @@ -4,6 +4,7 @@ #include #include #include +#include namespace mlx::core::simd { template