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
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);
}
}