Skip to content

Commit

Permalink
limit supported platforms to Linux&Darwin on x64 and arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
bortok committed Jan 29, 2023
1 parent 20f3813 commit 98c74ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions get-otgen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ initArch() {
armv6*) ARCH="armv6";;
armv7*) ARCH="arm";;
aarch64) ARCH="arm64";;
x86) ARCH="386";;
x86) ARCH="i386";;
x86_64) ARCH="x86_64";;
i686) ARCH="386";;
i386) ARCH="386";;
i686) ARCH="i386";;
i386) ARCH="i386";;
esac
}

Expand All @@ -70,7 +70,7 @@ runAsRoot() {
# verifySupported checks that the os/arch combination is supported for
# binary builds, as well whether or not necessary tools are present.
verifySupported() {
local supported="Darwin_x86_64\nDarwin_arm64\nLinux_i386\nLinux_x86_64\nLinux_arm64\nWindows_arm64\nWindows_i386\nWindows_x86_64"
local supported="Darwin_x86_64\nDarwin_arm64\nLinux_x86_64\nLinux_arm64"
if ! echo "${supported}" | grep -q "${OS}_${ARCH}"; then
echo "No prebuilt binary for ${OS}_${ARCH}."
echo "To build from source, go to ${REPO_URL}"
Expand Down

0 comments on commit 98c74ed

Please sign in to comment.