Skip to content

Commit

Permalink
eclass/toolchain-funcs: return arch from tc-ninja_magic_to_arch
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
grobian committed Aug 9, 2024
1 parent 47763c3 commit 27820f8
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions eclass/toolchain-funcs.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -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;;
Expand Down Expand Up @@ -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 \
Expand Down

0 comments on commit 27820f8

Please sign in to comment.