[PATCH] D18174: Fix libcxx build on musl
Khem Raj via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Jul 30 19:08:21 PDT 2017
raj.khem updated this revision to Diff 108853.
raj.khem edited the summary of this revision.
Herald added a reviewer: EricWF.
https://reviews.llvm.org/D18174
Files:
include/__mutex_base
Index: include/__mutex_base
===================================================================
--- include/__mutex_base
+++ include/__mutex_base
@@ -48,7 +48,10 @@
public:
_LIBCPP_INLINE_VISIBILITY
#ifndef _LIBCPP_CXX03_LANG
- constexpr mutex() = default;
+#ifdef __GLIBC__
+ constexpr
+#endif
+ mutex() = default;
#else
mutex() _NOEXCEPT {__m_ = (__libcpp_mutex_t)_LIBCPP_MUTEX_INITIALIZER;}
#endif
@@ -296,7 +299,10 @@
public:
_LIBCPP_INLINE_VISIBILITY
#ifndef _LIBCPP_CXX03_LANG
- constexpr condition_variable() _NOEXCEPT = default;
+#ifdef __GLIBC__
+ constexpr
+#endif
+ condition_variable() _NOEXCEPT = default;
#else
condition_variable() _NOEXCEPT {__cv_ = (__libcpp_condvar_t)_LIBCPP_CONDVAR_INITIALIZER;}
#endif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18174.108853.patch
Type: text/x-patch
Size: 768 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170731/63dce358/attachment.bin>
More information about the cfe-commits
mailing list