[OPENMP] ppc64le recognized as big-endian
authorGeorge Rokos <grokos@us.ibm.com>
Fri, 9 Sep 2016 18:04:23 +0000 (18:04 +0000)
committerGeorge Rokos <grokos@us.ibm.com>
Fri, 9 Sep 2016 18:04:23 +0000 (18:04 +0000)
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

llvm-svn: 281068

openmp/runtime/CMakeLists.txt

index 77599f5..9db058b 100644 (file)
@@ -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")