[PATCH] D57118: [CMake][PowerPC] Recognize LLVM_NATIVE_TARGET="ppc64le" as PowerPC

Keno Fischer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 23 13:56:00 PST 2019


loladiro created this revision.
loladiro added a reviewer: hfinkel.
Herald added subscribers: jsji, mgorny, nemanjai.

This value is derived from the host triple, which on the machine
I'm currently using is `ppc64le-linux-redhat`. This change makes
LLVM compile.


Repository:
  rL LLVM

https://reviews.llvm.org/D57118

Files:
  cmake/config-ix.cmake


Index: cmake/config-ix.cmake
===================================================================
--- cmake/config-ix.cmake
+++ cmake/config-ix.cmake
@@ -386,6 +386,8 @@
   set(LLVM_NATIVE_ARCH Sparc)
 elseif (LLVM_NATIVE_ARCH MATCHES "powerpc")
   set(LLVM_NATIVE_ARCH PowerPC)
+elseif (LLVM_NATIVE_ARCH MATCHES "ppc64le")
+  set(LLVM_NATIVE_ARCH PowerPC)
 elseif (LLVM_NATIVE_ARCH MATCHES "aarch64")
   set(LLVM_NATIVE_ARCH AArch64)
 elseif (LLVM_NATIVE_ARCH MATCHES "arm64")


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57118.183171.patch
Type: text/x-patch
Size: 477 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190123/750d3091/attachment.bin>


More information about the llvm-commits mailing list