From 0bc26e32545069586676149efcafae98c3e3dea3 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Tue, 5 Jul 2022 10:19:32 -0600 Subject: [PATCH] clang: Minor build simplification now that armv[45] is not supported Simplify these expressions a little and remove an obsolete comment. Sponsored by: Netflix --- lib/clang/llvm.build.mk | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/clang/llvm.build.mk b/lib/clang/llvm.build.mk index 666dff08c22..f9fd62e78f4 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