Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Apple Silicon macOS #396

Merged
merged 1 commit into from
Jan 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ goblin = "0.2.3"
human-panic = { version = "1.0.3", optional = true }
keyring = { version = "0.9.0", optional = true }
platform-info = "0.0.1"
platforms = "1.0.3"
platforms = "1.1.0"
pretty_env_logger = { version = "0.4.0", optional = true }
regex = "1.3.9"
reqwest = { version = "0.10.8", optional = true, default-features = false, features = ["blocking"] }
Expand Down
3 changes: 2 additions & 1 deletion src/target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ impl Target {
Err(error) => bail!(error),
};
}
(OS::Macos, Arch::AARCH64) => bail!("aarch64 is not supported for macOS"),
(OS::Macos, Arch::ARMV7L) => bail!("armv7l is not supported for macOS"),
(OS::Macos, Arch::X86) => bail!("32-bit wheels are not supported for macOS"),
(OS::Windows, Arch::AARCH64) => bail!("aarch64 is not supported for Windows"),
Expand Down Expand Up @@ -193,6 +192,7 @@ impl Target {
}
(OS::Linux, _) => format!("{}_{}", manylinux, self.arch),
(OS::Macos, Arch::X86_64) => "macosx_10_7_x86_64".to_string(),
(OS::Macos, Arch::AARCH64) => "macosx_11_0_arm64".to_string(),
(OS::Windows, Arch::X86) => "win32".to_string(),
(OS::Windows, Arch::X86_64) => "win_amd64".to_string(),
(_, _) => panic!("unsupported target should not have reached get_platform_tag()"),
Expand All @@ -215,6 +215,7 @@ impl Target {
(OS::Linux, Arch::X86) => "i386-linux-gnu", // not i686
(OS::Linux, Arch::X86_64) => "x86_64-linux-gnu",
(OS::Macos, Arch::X86_64) => "darwin",
(OS::Macos, Arch::AARCH64) => "darwin",
(OS::Windows, Arch::X86) => "win32",
(OS::Windows, Arch::X86_64) => "win_amd64",
(OS::Macos, _) => {
Expand Down