Skip to content

Commit

Permalink
Merge pull request #7411 from cms-sw/smuzaffar-patch-3
Browse files Browse the repository at this point in the history
[llvm] use same host triple as set by gcc
  • Loading branch information
smuzaffar authored Oct 26, 2021
2 parents a9cdf92 + 18c8fed commit 1deac7c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llvm.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand Down

0 comments on commit 1deac7c

Please sign in to comment.