Skip to content

Commit 36b96d9

Browse files
committed
Allow discovery of x86-64 managed Python builds on macOS
1 parent cb2dc54 commit 36b96d9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

crates/uv-python/src/platform.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,10 @@ impl Arch {
157157

158158
// TODO: Implement `variant` support checks
159159

160-
// Windows ARM64 runs emulated x86_64 binaries transparently
161-
if cfg!(windows) && matches!(self.family, target_lexicon::Architecture::Aarch64(_)) {
160+
// macOS aarch64 and Windows ARM64 runs emulated x86_64 binaries transparently
161+
if (cfg!(windows) || cfg!(target_os = "macos"))
162+
&& matches!(self.family, target_lexicon::Architecture::Aarch64(_))
163+
{
162164
return other.family == target_lexicon::Architecture::X86_64;
163165
}
164166

0 commit comments

Comments
 (0)