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

This commit is contained in:
Federico Terzi 2022-03-06 20:40:07 +01:00
parent 880c7c0708
commit 51527500e7

View File

@ -49,7 +49,7 @@ fn build_native() {
.expect("unable to extract wxWidgets source dir"); .expect("unable to extract wxWidgets source dir");
// Compile wxWidgets // Compile wxWidgets
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 vcvars_path = None; let mut vcvars_path = None;
let mut current_root = tool.path(); let mut current_root = tool.path();