[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
Mon Dec 10 00:01:28 PST 2018


sarveshtamba updated this revision to Diff 177461.
sarveshtamba marked an inline comment as done.
sarveshtamba added a comment.

Incorporating review comments.


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,8 @@
 #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(__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.177461.patch
Type: text/x-patch
Size: 797 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181210/cbdf14d9/attachment.bin>


More information about the llvm-commits mailing list