mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +00:00
clang: Minor build simplification now that armv[45] is not supported
Simplify these expressions a little and remove an obsolete comment. Sponsored by: Netflix
This commit is contained in:
parent
2726978bd8
commit
0bc26e3254
|
@ -38,12 +38,13 @@ TARGET_ARCH?= ${MACHINE_ARCH}
|
|||
BUILD_ARCH?= ${MACHINE_ARCH}
|
||||
|
||||
# Armv6 and armv7 uses hard float abi, unless the CPUTYPE has soft in it.
|
||||
# arm (for armv4 and armv5 CPUs) always uses the soft float ABI.
|
||||
# For all other targets, we stick with 'unknown'.
|
||||
.if ${TARGET_ARCH:Marmv[67]*} && (!defined(CPUTYPE) || ${CPUTYPE:M*soft*} == "")
|
||||
TARGET_TRIPLE_ABI= -gnueabihf
|
||||
.elif ${TARGET_ARCH:Marm*}
|
||||
TARGET_TRIPLE_ABI= -gnueabi
|
||||
.if ${TARGET_ARCH:Marm*}
|
||||
.if !defined(CPUTYPE) || ${CPUTYPE:M*soft*} == ""
|
||||
TARGET_ABI= -gnueabihf
|
||||
.else
|
||||
TARGET_ABI= -gnueabi
|
||||
.endif
|
||||
.else
|
||||
TARGET_TRIPLE_ABI=
|
||||
.endif
|
||||
|
|
Loading…
Reference in a new issue