diff options
author | Fabian Groffen <grobian@gentoo.org> | 2024-08-09 11:23:43 +0200 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2024-08-09 11:23:43 +0200 |
commit | 27820f83ce65166c1bcec65cb35e9e17fcc2ff5e (patch) | |
tree | ba16830dcb43aca711e557b57e43b6a1009a2265 | |
parent | eclass/python-utils-r1: use gx86 version (diff) | |
download | prefix-27820f83ce65166c1bcec65cb35e9e17fcc2ff5e.tar.gz prefix-27820f83ce65166c1bcec65cb35e9e17fcc2ff5e.tar.bz2 prefix-27820f83ce65166c1bcec65cb35e9e17fcc2ff5e.zip |
eclass/toolchain-funcs: return arch from tc-ninja_magic_to_arch
For some reason Prefix has been returning whole keywords, but this
doesn't seem to work very well on consumer, such as go-env.eclass
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
-rw-r--r-- | eclass/toolchain-funcs.eclass | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass index 5338dc6509..156e659aa3 100644 --- a/eclass/toolchain-funcs.eclass +++ b/eclass/toolchain-funcs.eclass @@ -653,15 +653,7 @@ tc-ninja_magic_to_arch() { [[ -z ${host} ]] && host=${CTARGET:-${CHOST}} case ${host} in - powerpc-apple-darwin*) echo ppc-macos;; - x86_64-apple-darwin*) echo x64-macos;; - arm64-apple-darwin*) echo arm64-macos;; - sparc-sun-solaris*) echo sparc-solaris;; - sparcv9-sun-solaris*) echo sparc64-solaris;; - i?86-pc-solaris*) echo x86-solaris;; - x86_64-pc-solaris*) echo x64-solaris;; - i?86-pc-winnt*) echo x86-winnt;; - + arm64*) echo arm64;; aarch64*) echo arm64;; alpha*) echo alpha;; arc*) echo arc;; @@ -709,6 +701,7 @@ tc-ninja_magic_to_arch() { score*) echo score;; sh64*) _tc_echo_kernel_alias sh64 sh;; sh*) echo sh;; + sparcv9*) echo sparc64;; sparc64*) _tc_echo_kernel_alias sparc64 sparc;; sparc*) [[ ${PROFILE_ARCH} == "sparc64" ]] \ && _tc_echo_kernel_alias sparc64 sparc \ |