mirror of
https://git.musl-libc.org/git/musl
synced 2025-10-05 21:12:41 +02:00
configure: enable riscv32 port
This commit is contained in:
committed by
Rich Felker
parent
d25f0cccb9
commit
377c363fb5
3
configure
vendored
3
configure
vendored
@@ -337,6 +337,7 @@ or1k*) ARCH=or1k ;;
|
|||||||
powerpc64*|ppc64*) ARCH=powerpc64 ;;
|
powerpc64*|ppc64*) ARCH=powerpc64 ;;
|
||||||
powerpc*|ppc*) ARCH=powerpc ;;
|
powerpc*|ppc*) ARCH=powerpc ;;
|
||||||
riscv64*) ARCH=riscv64 ;;
|
riscv64*) ARCH=riscv64 ;;
|
||||||
|
riscv32*) ARCH=riscv32 ;;
|
||||||
sh[1-9bel-]*|sh|superh*) ARCH=sh ;;
|
sh[1-9bel-]*|sh|superh*) ARCH=sh ;;
|
||||||
s390x*) ARCH=s390x ;;
|
s390x*) ARCH=s390x ;;
|
||||||
unknown) fail "$0: unable to detect target arch; try $0 --target=..." ;;
|
unknown) fail "$0: unable to detect target arch; try $0 --target=..." ;;
|
||||||
@@ -727,7 +728,7 @@ trycppif __LITTLE_ENDIAN__ "$t" && SUBARCH=${SUBARCH}le
|
|||||||
trycppif _SOFT_FLOAT "$t" && fail "$0: error: soft-float not supported on powerpc64"
|
trycppif _SOFT_FLOAT "$t" && fail "$0: error: soft-float not supported on powerpc64"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$ARCH" = "riscv64" ; then
|
if test "$ARCH" = "riscv64" -o "$ARCH" = "riscv32" ; then
|
||||||
trycppif __riscv_float_abi_soft "$t" && SUBARCH=${SUBARCH}-sf
|
trycppif __riscv_float_abi_soft "$t" && SUBARCH=${SUBARCH}-sf
|
||||||
trycppif __riscv_float_abi_single "$t" && SUBARCH=${SUBARCH}-sp
|
trycppif __riscv_float_abi_single "$t" && SUBARCH=${SUBARCH}-sp
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user