mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-19 12:57:53 +00:00
arch/sh: use the floating-point string option in tests
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
This commit is contained in:
parent
76b0fcc433
commit
da09907c00
@ -22,9 +22,14 @@ CT_DoArchTupleValues () {
|
||||
case "${CT_ARCH_SH_VARIANT}" in
|
||||
sh3) CT_ARCH_ARCH_CFLAG=-m3;;
|
||||
sh4*)
|
||||
case "${CT_ARCH_FLOAT_HW},${CT_ARCH_FLOAT_SW}" in
|
||||
y,) CT_ARCH_ARCH_CFLAG="-m4${CT_ARCH_SH_VARIANT##sh?}";;
|
||||
,y) CT_ARCH_ARCH_CFLAG="-m4${CT_ARCH_SH_VARIANT##sh?}-nofpu";;
|
||||
# softfp is not possible for SuperH, no need to test for it.
|
||||
case "${CT_ARCH_FLOAT}" in
|
||||
hard)
|
||||
CT_ARCH_ARCH_CFLAG="-m4${CT_ARCH_SH_VARIANT##sh?}"
|
||||
;;
|
||||
soft)
|
||||
CT_ARCH_ARCH_CFLAG="-m4${CT_ARCH_SH_VARIANT##sh?}-nofpu"
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
|
Loading…
Reference in New Issue
Block a user