From a79ad052d782c18b9b099a50c7cfb99ec6e7d792 Mon Sep 17 00:00:00 2001 From: messense Date: Thu, 26 May 2022 22:47:59 +0800 Subject: [PATCH] Fix python interpreter detection on arm64 Windows --- src/python_interpreter/mod.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/python_interpreter/mod.rs b/src/python_interpreter/mod.rs index 4b76c8fb6..2c24c9f0a 100644 --- a/src/python_interpreter/mod.rs +++ b/src/python_interpreter/mod.rs @@ -98,27 +98,29 @@ fn find_all_windows(target: &Target, min_python_minor: usize) -> Result() .context(context)?; let minor = capture - .get(2) + .get(3) .unwrap() .as_str() .parse::() .context(context)?; if !versions_found.contains(&(major, minor)) { let pointer_width = capture - .get(3) + .get(5) .unwrap() .as_str() .parse::()