[PATCH] D56382: Change llvm call once check for building Swift for PowerPC(ppc64le)
Sarvesh Tamba via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 16 01:15:39 PST 2019
sarveshtamba updated this revision to Diff 181990.
sarveshtamba added a comment.
Herald added a subscriber: krytarowski.
Extending the condition to include __PPC__
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D56382/new/
https://reviews.llvm.org/D56382
Files:
include/llvm/Support/Threading.h
Index: include/llvm/Support/Threading.h
===================================================================
--- include/llvm/Support/Threading.h
+++ include/llvm/Support/Threading.h
@@ -27,11 +27,16 @@
#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__))))
// 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.
#define LLVM_THREADING_USE_STD_CALL_ONCE 1
+#elif defined(LLVM_ON_UNIX) && \
+ ((defined(__ppc__) || defined(__PPC__)) && defined(__LITTLE_ENDIAN__))
+// Check for PowerPC64LE to use std::call_once
+#define LLVM_THREADING_USE_STD_CALL_ONCE 1
#else
#define LLVM_THREADING_USE_STD_CALL_ONCE 0
#endif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56382.181990.patch
Type: text/x-patch
Size: 1134 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190116/0363862f/attachment.bin>
More information about the llvm-commits
mailing list