[Openmp-commits] [PATCH] D23626: [OPENMP] ppc64le recognized as big-endian

George Rokos via Openmp-commits openmp-commits at lists.llvm.org
Wed Aug 17 14:11:24 PDT 2016


grokos created this revision.
grokos added reviewers: AndreyChurbanov, tlwilmar, jlpeyton, hbae.
grokos added a subscriber: openmp-commits.
grokos set the repository for this revision to rL LLVM.

There is a bug in CMakeLists which causes powerpc64le systems to be recognized as big-endian. This patch fixes the issue.

Repository:
  rL LLVM

https://reviews.llvm.org/D23626

Files:
  runtime/CMakeLists.txt

Index: runtime/CMakeLists.txt
===================================================================
--- runtime/CMakeLists.txt
+++ runtime/CMakeLists.txt
@@ -65,6 +65,8 @@
     set(LIBOMP_ARCH x86_64)
   elseif(LIBOMP_NATIVE_ARCH STREQUAL "x86_64")
     set(LIBOMP_ARCH x86_64)
+  elseif(LIBOMP_NATIVE_ARCH MATCHES "powerpc64le")
+    set(LIBOMP_ARCH ppc64le)
   elseif(LIBOMP_NATIVE_ARCH MATCHES "powerpc")
     set(LIBOMP_ARCH ppc64)
   elseif(LIBOMP_NATIVE_ARCH MATCHES "aarch64")


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23626.68421.patch
Type: text/x-patch
Size: 482 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20160817/b7decdf3/attachment.bin>


More information about the Openmp-commits mailing list