Skip to content

Commit 7feee4b

Browse files
committed
support matching universal2 PyPI platform tags
1 parent c4b23f5 commit 7feee4b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • clang-installer/src/downloader

clang-installer/src/downloader/pypi.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ impl PlatformTag {
179179
_ => false,
180180
},
181181
"macos" => match sys_arch {
182-
"x86_64" => self.arch == "x86_64",
183-
"aarch64" => self.arch == "arm64",
182+
"x86_64" => self.arch == "x86_64" || self.arch == "universal2",
183+
"aarch64" => self.arch == "arm64" || self.arch == "universal2",
184184
_ => false,
185185
},
186186
"linux" => self.arch == sys_arch,

0 commit comments

Comments
 (0)