[PATCH] D55503: Change llvm call once check for building Swift for PowerPC(ppc64le)

Sarvesh Tamba via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 13 02:40:05 PST 2018


sarveshtamba updated this revision to Diff 178026.
sarveshtamba added a comment.

Update for PowerPC64LE


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D55503/new/

https://reviews.llvm.org/D55503

Files:
  include/llvm/Support/Threading.h


Index: include/llvm/Support/Threading.h
===================================================================
--- include/llvm/Support/Threading.h
+++ include/llvm/Support/Threading.h
@@ -27,7 +27,9 @@
 #define LLVM_THREADING_USE_STD_CALL_ONCE 1
 #elif defined(LLVM_ON_UNIX) &&                                                 \
     (defined(_LIBCPP_VERSION) ||                                               \
-     !(defined(__NetBSD__) || defined(__OpenBSD__) || defined(__ppc__)))
+     !(defined(__NetBSD__) || defined(__OpenBSD__) ||                          \
+       (defined(__ppc__) || defined(__PPC__))) ||                              \
+       (defined(__PPC__) && defined(__LITTLE_ENDIAN__)))
 // std::call_once from libc++ is used on all Unix platforms. Other
 // implementations like libstdc++ are known to have problems on NetBSD,
 // OpenBSD and PowerPC.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55503.178026.patch
Type: text/x-patch
Size: 880 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181213/0415b698/attachment.bin>


More information about the llvm-commits mailing list