Skip to content

Commit

Permalink
Add support for aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
DenWav committed Sep 26, 2021
1 parent 5500221 commit 24618d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/api/adoptium.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ fn get_os_name() -> JdkFetchResult<&'static str> {
fn get_arch_name() -> JdkFetchResult<&'static str> {
let env_arch = std::env::consts::ARCH;
match env_arch {
"x86" => Ok(env_arch),
"x86" | "aarch64" => Ok(env_arch),
"x86_64" => Ok("x64"),
_ => Err(JdkFetchError::Incompatible {
message: format!("Unsupported architecture: {}", env_arch),
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ fn is_unsupported_system() -> bool {

let env_arch = std::env::consts::ARCH;
match env_arch {
"x86" | "x86_64" => {}
"x86" | "x86_64" | "aarch64" => {}
_ => {
eprintln!(
"{}",
Expand Down

0 comments on commit 24618d0

Please sign in to comment.