aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2022-07-05 16:19:32 +0000
committerWarner Losh <imp@FreeBSD.org>2023-08-12 04:55:10 +0000
commit0bc26e32545069586676149efcafae98c3e3dea3 (patch)
treee2ec4c60803454db5343950b90080fc70a956a9b
parent2726978bd801ceca07075f150d6ad9ef55470a21 (diff)
downloadsrc-0bc26e32545069586676149efcafae98c3e3dea3.tar.gz
src-0bc26e32545069586676149efcafae98c3e3dea3.zip
clang: Minor build simplification now that armv[45] is not supported
Simplify these expressions a little and remove an obsolete comment. Sponsored by: Netflix
-rw-r--r--lib/clang/llvm.build.mk11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/clang/llvm.build.mk b/lib/clang/llvm.build.mk
index 666dff08c222..f9fd62e78f4e 100644
--- a/lib/clang/llvm.build.mk
+++ b/lib/clang/llvm.build.mk
@@ -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