Skip to content

Commit

Permalink
consider ARCH as ppc64le when rust arch is powerpc64
Browse files Browse the repository at this point in the history
  • Loading branch information
Amulyam24 committed May 29, 2023
1 parent 6498685 commit c8d5b50
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1379,6 +1379,8 @@ const X86: &str = "x86";
const AMD: &str = "amd";
const ARM64: &str = "arm64";
const AARCH64: &str = "aarch64";
const POWERPC64: &str = "powerpc64";
const PPC64LE: &str = "ppc64le";

fn go_arch() -> &'static str {
// Massage Rust Architecture vars to GO equivalent:
Expand All @@ -1388,6 +1390,7 @@ fn go_arch() -> &'static str {
X86_64 => AMD64,
X86 => AMD,
AARCH64 => ARM64,
POWERPC64 => PPC64LE,
other => other,
}
}
Expand Down

0 comments on commit c8d5b50

Please sign in to comment.