diff --git a/src/windows_registry.rs b/src/windows_registry.rs index 1d65dd9..350fb76 100644 --- a/src/windows_registry.rs +++ b/src/windows_registry.rs @@ -372,7 +372,7 @@ pub fn find_tool(target: &str, tool: &str) -> Option { let mut path = PathBuf::from(path); path.push("MSBuild.exe"); let mut tool = Tool::new(path); - if path.contains("x86_64") { + if target.contains("x86_64") { tool.env.push(("Platform".into(), "X64".into())); } tool