[Openmp-commits] [openmp] r281068 - [OPENMP] ppc64le recognized as big-endian

George Rokos via Openmp-commits openmp-commits at lists.llvm.org
Fri Sep 9 11:04:23 PDT 2016


Author: grokos
Date: Fri Sep  9 13:04:23 2016
New Revision: 281068

URL: http://llvm.org/viewvc/llvm-project?rev=281068&view=rev
Log:
[OPENMP] ppc64le recognized as big-endian

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

Differential Revision: https://reviews.llvm.org/D23626


Modified:
    openmp/trunk/runtime/CMakeLists.txt

Modified: openmp/trunk/runtime/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/CMakeLists.txt?rev=281068&r1=281067&r2=281068&view=diff
==============================================================================
--- openmp/trunk/runtime/CMakeLists.txt (original)
+++ openmp/trunk/runtime/CMakeLists.txt Fri Sep  9 13:04:23 2016
@@ -65,6 +65,8 @@ else() # Part of LLVM build
     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")




More information about the Openmp-commits mailing list