diff --git a/implementations/Crafter.Build-Command.cpp b/implementations/Crafter.Build-Command.cpp index c6977a5..0e91fd9 100644 --- a/implementations/Crafter.Build-Command.cpp +++ b/implementations/Crafter.Build-Command.cpp @@ -129,10 +129,14 @@ namespace Crafter { std::string stdPcm = std::format("{}\\{}\\std.pcm", exeDir.string(), config.target); std::string stdcppm = std::format("{}\\{}\\std.cppm", exeDir.string(), config.target); - std::cout << stdPcm << std::endl; + std::cout << stdPcm << std::endl; std::cout << stdcppm << std::endl; - std::string directoryPath = RunCommand("\"C:\\Program Files (x86)\\Microsoft Visual Studio\\Installer\\vswhere.exe\" -latest -property installationPath") + "\\VC\\Tools"; + std::string directoryPath = RunCommand("\"C:\\Program Files (x86)\\Microsoft Visual Studio\\Installer\\vswhere.exe\" -latest -property installationPath") +; + + directoryPath.pop_back(); + + directoryPath += "\\VC\\Tools"; std::cout << directoryPath << std::endl; @@ -176,7 +180,11 @@ namespace Crafter { } void AutoDetect() { - std::string directoryPath = RunCommand("\"C:\\Program Files (x86)\\Microsoft Visual Studio\\Installer\\vswhere.exe\" -latest -property installationPath") + "\\VC\\Tools"; + std::string directoryPath = RunCommand("\"C:\\Program Files (x86)\\Microsoft Visual Studio\\Installer\\vswhere.exe\" -latest -property installationPath") +; + + directoryPath.pop_back(); + + directoryPath += "\\VC\\Tools"; std::cout << directoryPath << std::endl;