fix(misc): change cc tool to infer correct msvc location on Windows Server 2022

This commit is contained in:
Federico Terzi 2022-03-06 21:23:44 +01:00
parent 51527500e7
commit e3887c0184

View File

@ -26,7 +26,7 @@ fn main() {
// First, we try to find the directory containing the various versions: // First, we try to find the directory containing the various versions:
// C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\ // C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\
let tool = cc::windows_registry::find_tool("msvc", "msbuild") let tool = cc::windows_registry::find_tool("msvc", "devenv")
.expect("unable to locate MSVC compiler, did you install Visual Studio?"); .expect("unable to locate MSVC compiler, did you install Visual Studio?");
let mut versions_dir = None; let mut versions_dir = None;
let mut current_root = tool.path(); let mut current_root = tool.path();