From 6f884fda3def1867fd2830d643d14fb305521a8a Mon Sep 17 00:00:00 2001 From: Mads Marquart Date: Wed, 1 Jan 2025 19:18:35 +0100 Subject: [PATCH] Document new supported architecture names in windows::find --- src/windows/find_tools.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/windows/find_tools.rs b/src/windows/find_tools.rs index 490e52c1..ce4f0c62 100644 --- a/src/windows/find_tools.rs +++ b/src/windows/find_tools.rs @@ -40,6 +40,7 @@ enum TargetArch { impl TargetArch { /// Parse the `TargetArch` from a str. Returns `None` if the arch is unrecognized. fn new(arch: &str) -> Option { + // NOTE: Keep up to date with docs in [`find`]. match arch { "x64" | "x86_64" => Some(Self::X64), "arm64" | "aarch64" => Some(Self::Arm64), @@ -112,13 +113,11 @@ impl EnvGetter for StdEnvGetter { /// The `arch_or_target` argument is the architecture or the Rust target /// triple that the tool should work for (e.g. compile or link for). The /// supported architecture names are: -/// - `"i586"` -/// - `"i686"` -/// - `"x86_64"` -/// - `"arm"` -/// - `"thumbv7a"` -/// - `"aarch64"` +/// - `"x64"` or `"x86_64"` +/// - `"arm64"` or `"aarch64"` /// - `"arm64ec"` +/// - `"x86"`, `"i586"` or `"i686"` +/// - `"arm"` or `"thumbv7a"` /// /// The `tool` argument is the tool to find (e.g. `cl.exe` or `link.exe`). ///