Skip to content

Commit 27820f8

Browse files
committed
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 <[email protected]>
1 parent 47763c3 commit 27820f8

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

eclass/toolchain-funcs.eclass

+2-9
Original file line numberDiff line numberDiff line change
@@ -653,15 +653,7 @@ tc-ninja_magic_to_arch() {
653653
[[ -z ${host} ]] && host=${CTARGET:-${CHOST}}
654654

655655
case ${host} in
656-
powerpc-apple-darwin*) echo ppc-macos;;
657-
x86_64-apple-darwin*) echo x64-macos;;
658-
arm64-apple-darwin*) echo arm64-macos;;
659-
sparc-sun-solaris*) echo sparc-solaris;;
660-
sparcv9-sun-solaris*) echo sparc64-solaris;;
661-
i?86-pc-solaris*) echo x86-solaris;;
662-
x86_64-pc-solaris*) echo x64-solaris;;
663-
i?86-pc-winnt*) echo x86-winnt;;
664-
656+
arm64*) echo arm64;;
665657
aarch64*) echo arm64;;
666658
alpha*) echo alpha;;
667659
arc*) echo arc;;
@@ -709,6 +701,7 @@ tc-ninja_magic_to_arch() {
709701
score*) echo score;;
710702
sh64*) _tc_echo_kernel_alias sh64 sh;;
711703
sh*) echo sh;;
704+
sparcv9*) echo sparc64;;
712705
sparc64*) _tc_echo_kernel_alias sparc64 sparc;;
713706
sparc*) [[ ${PROFILE_ARCH} == "sparc64" ]] \
714707
&& _tc_echo_kernel_alias sparc64 sparc \

0 commit comments

Comments
 (0)