diff --git a/llvm.spec b/llvm.spec index a64fda12324..7fc1217a7ab 100644 --- a/llvm.spec +++ b/llvm.spec @@ -48,6 +48,7 @@ cmake %{_builddir}/llvm-%{realversion}-%{llvmCommit}/llvm \ -DLLVM_ENABLE_EH:BOOL=ON \ -DLLVM_ENABLE_PIC:BOOL=ON \ -DLLVM_ENABLE_RTTI:BOOL=ON \ + -DLLVM_HOST_TRIPLE=$(gcc -dumpmachine) \ -DLLVM_TARGETS_TO_BUILD:STRING="X86;PowerPC;AArch64;NVPTX" \ -DLIBOMPTARGET_NVPTX_ALTERNATE_HOST_COMPILER=/usr/bin/gcc \ -DLIBOMPTARGET_NVPTX_COMPUTE_CAPABILITIES="%llvm_cuda_arch" \