[packages/llvm] customize target triple for armhf to meet llvm expectations

atler atler at pld-linux.org
Mon Sep 7 11:17:32 CEST 2026


commit 403d390c62b46c1a9ea3887df24b698e787a2b52
Author: Jan Palus <atler at pld-linux.org>
Date:   Mon Sep 7 10:56:40 2026 +0200

    customize target triple for armhf to meet llvm expectations

 llvm.spec | 8 ++++++++
 1 file changed, 8 insertions(+)
---
diff --git a/llvm.spec b/llvm.spec
index d0c2177..3e8be2b 100644
--- a/llvm.spec
+++ b/llvm.spec
@@ -250,7 +250,15 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %define		filterout_c	-fvar-tracking-assignments
 %define		filterout_cxx	-fvar-tracking-assignments -Werror=format-security
 
+%ifarch armv6hl
+%define		llvm_triple	armv6hl-%{_vendor}-%{_os}-gnueabihf
+%endif
+%ifarch armv7hl armv7hnl
+%define		llvm_triple	armv7hl-%{_vendor}-%{_os}-gnueabihf
+%endif
+%ifnarch armv6hl armv7hl armv7hnl
 %define		llvm_triple	%{_target_platform}
+%endif
 
 %description
 LLVM is a compiler infrastructure designed for compile-time,
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/llvm.git/commitdiff/403d390c62b46c1a9ea3887df24b698e787a2b52



More information about the pld-cvs-commit mailing list