[packages/llvm] explicitly set LLVM_HOST_TRIPLE
atler
atler at pld-linux.org
Mon Sep 7 11:17:27 CEST 2026
commit 795cbe59db8898bd36ebee67993d474f08907383
Author: Jan Palus <atler at pld-linux.org>
Date: Fri Sep 4 13:06:56 2026 +0200
explicitly set LLVM_HOST_TRIPLE
llvm.spec | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/llvm.spec b/llvm.spec
index 05da554..d0c2177 100644
--- a/llvm.spec
+++ b/llvm.spec
@@ -250,6 +250,8 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define filterout_c -fvar-tracking-assignments
%define filterout_cxx -fvar-tracking-assignments -Werror=format-security
+%define llvm_triple %{_target_platform}
+
%description
LLVM is a compiler infrastructure designed for compile-time,
link-time, runtime, and idle-time optimization of programs from
@@ -1041,7 +1043,8 @@ RUNTIMES="%{?with_rt:compiler-rt;}%{?with_libclc:libclc;}%{?with_libcxx:libcxx;l
%endif
-DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
-DLLVM_TARGET_ARCH:STRING=%{_target_base_arch} \
- -DLLVM_DEFAULT_TARGET_TRIPLE:STRING=%{_target_platform} \
+ -DLLVM_DEFAULT_TARGET_TRIPLE:STRING=%{llvm_triple} \
+ -DLLVM_HOST_TRIPLE:STRING=%{llvm_triple} \
%if %{with lowmem}
-DLLVM_PARALLEL_LINK_JOBS:STRING=1 \
%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/llvm.git/commitdiff/403d390c62b46c1a9ea3887df24b698e787a2b52
More information about the pld-cvs-commit
mailing list