summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Rokos <grokos@us.ibm.com>2016-09-09 18:04:23 +0000
committerGeorge Rokos <grokos@us.ibm.com>2016-09-09 18:04:23 +0000
commit118de30b44631dd3448b9d71b0e0eee8b02c8d92 (patch)
tree4f8d9b6074bf6fc91b0a507ca79fc2fb588601c0
parent9ba31a5efe21d13030a889113d4e062b9ddf2eef (diff)
downloadbcm5719-llvm-118de30b44631dd3448b9d71b0e0eee8b02c8d92.tar.gz
bcm5719-llvm-118de30b44631dd3448b9d71b0e0eee8b02c8d92.zip
[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 llvm-svn: 281068
-rw-r--r--openmp/runtime/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/openmp/runtime/CMakeLists.txt b/openmp/runtime/CMakeLists.txt
index 77599f5f058..9db058b6419 100644
--- a/openmp/runtime/CMakeLists.txt
+++ b/openmp/runtime/CMakeLists.txt
@@ -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")
OpenPOWER on IntegriCloud