Files
SED4906 c12b2aba11 build: initial support for ppc64
https://review.haiku-os.org/c/buildtools/+/2784

Change-Id: If429e20752712224ffc2afb0c32ca94d14a8b7a8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10809
Haiku-Format: Haiku-format Bot <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2026-06-05 10:52:04 +00:00

36 lines
555 B
Bash
Executable File

#!/bin/bash
#
# Produce a gcc triplet for the given architecture
# Released under the MIT License.
#
# We have a lot of arbitrary toolchain triplets, this is
# a simple script to decode them.
#
if [[ $# -ne 1 ]]; then
echo "usage: $0 <architecture>"
exit 1
fi
case "$1" in
"arm64")
echo "aarch64-unknown-haiku"
;;
"ppc")
echo "powerpc-apple-haiku"
;;
"ppc64")
echo "powerpc64-unknown-haiku"
;;
"sparc")
echo "sparc64-unknown-haiku"
;;
"x86_gcc2" | "x86")
echo "i586-pc-haiku"
;;
*)
echo "$1-unknown-haiku"
;;
esac
exit 0