[lldb-dev] Win64 lldb build broken, llvm::call_once and _mm_mfence

Kamil Rytarowski via lldb-dev lldb-dev at lists.llvm.org
Wed Feb 8 13:17:41 PST 2017


On 08.02.2017 22:14, Kamil Rytarowski wrote:
> // 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.
> #if defined(LLVM_ON_UNIX) && (defined(_LIBCPP_VERSION) ||
>       \
>     !(defined(__NetBSD__) || defined(__OpenBSD__) || defined(__ppc__)))
> #define LLVM_THREADING_USE_STD_CALL_ONCE 1
> #else
> #define LLVM_THREADING_USE_STD_CALL_ONCE 0
> #endif
> 
> This check defined(LLVM_ON_UNIX) looks wrong it assumes that Windows
> needs call_once walkaround.
> 

Ah not, it's OK.

If the file is windows-only it can be switched back to std:: version.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20170208/2ad2e083/attachment.sig>


More information about the lldb-dev mailing list