Skip to content

Commit

Permalink
Merge pull request #1338 from madsmtm/docs-windows-find
Browse files Browse the repository at this point in the history
Document new supported architecture names in `windows_registry::find`
  • Loading branch information
madsmtm authored Jan 1, 2025
2 parents cfa61d1 + 6f884fd commit 973597d
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/windows/find_tools.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Self> {
// NOTE: Keep up to date with docs in [`find`].
match arch {
"x64" | "x86_64" => Some(Self::X64),
"arm64" | "aarch64" => Some(Self::Arm64),
Expand Down Expand Up @@ -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`).
///
Expand Down

0 comments on commit 973597d

Please sign in to comment.