Skip to content

Commit 50bb379

Browse files
Support aarch64-darwin.
1 parent 5e887d4 commit 50bb379

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/dfxvm/install.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,10 @@ async fn download_verified_tarball(
102102
fn format_tarball_basename() -> &'static str {
103103
#[cfg(target_os = "linux")]
104104
let basename = "dfx-x86_64-unknown-linux-gnu";
105-
#[cfg(target_os = "macos")]
105+
#[cfg(all(target_os = "macos", target_arch = "x86_64"))]
106106
let basename = "dfx-x86_64-apple-darwin";
107+
#[cfg(all(target_os = "macos", target_arch = "aarch64"))]
108+
let basename = "dfx-aarch64-apple-darwin";
107109
basename
108110
}
109111

0 commit comments

Comments
 (0)