Skip to content

Commit 973597d

Browse files
authored
Merge pull request #1338 from madsmtm/docs-windows-find
Document new supported architecture names in `windows_registry::find`
2 parents cfa61d1 + 6f884fd commit 973597d

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/windows/find_tools.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ enum TargetArch {
4040
impl TargetArch {
4141
/// Parse the `TargetArch` from a str. Returns `None` if the arch is unrecognized.
4242
fn new(arch: &str) -> Option<Self> {
43+
// NOTE: Keep up to date with docs in [`find`].
4344
match arch {
4445
"x64" | "x86_64" => Some(Self::X64),
4546
"arm64" | "aarch64" => Some(Self::Arm64),
@@ -112,13 +113,11 @@ impl EnvGetter for StdEnvGetter {
112113
/// The `arch_or_target` argument is the architecture or the Rust target
113114
/// triple that the tool should work for (e.g. compile or link for). The
114115
/// supported architecture names are:
115-
/// - `"i586"`
116-
/// - `"i686"`
117-
/// - `"x86_64"`
118-
/// - `"arm"`
119-
/// - `"thumbv7a"`
120-
/// - `"aarch64"`
116+
/// - `"x64"` or `"x86_64"`
117+
/// - `"arm64"` or `"aarch64"`
121118
/// - `"arm64ec"`
119+
/// - `"x86"`, `"i586"` or `"i686"`
120+
/// - `"arm"` or `"thumbv7a"`
122121
///
123122
/// The `tool` argument is the tool to find (e.g. `cl.exe` or `link.exe`).
124123
///

0 commit comments

Comments
 (0)