From e3887c0184b99ee389c96f32e65d93cdddcf65cd Mon Sep 17 00:00:00 2001 From: Federico Terzi Date: Sun, 6 Mar 2022 21:23:44 +0100 Subject: [PATCH] fix(misc): change cc tool to infer correct msvc location on Windows Server 2022 --- scripts/build_windows_resources.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build_windows_resources.rs b/scripts/build_windows_resources.rs index a2b4de1..6357b6e 100644 --- a/scripts/build_windows_resources.rs +++ b/scripts/build_windows_resources.rs @@ -26,7 +26,7 @@ fn main() { // First, we try to find the directory containing the various versions: // 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?"); let mut versions_dir = None; let mut current_root = tool.path();