HomePhabricator

Fix compilation error with -DLIBCXXABI_ENABLE_THREADS=OFF

Description

Fix compilation error with -DLIBCXXABI_ENABLE_THREADS=OFF

The error is:

libcxxabi/src/cxa_guard_impl.h: In instantiation of ‘cxxabiv1::{anonymous}::LibcppMutex cxxabiv1::{anonymous}::GlobalStatic<cxxabiv1::{anonymous}::LibcppMutex>::instance’:
libcxxabi/src/cxa_guard_impl.h:529:62: required from here
libcxxabi/src/cxa_guard_impl.h:510:23: error: ‘
cxxabiv1::{anonymous}::LibcppMutex cxxabiv1::{anonymous}::GlobalStatic<cxxabiv1::{anonymous}::LibcppMutex>::instance’ has incomplete type
_LIBCPP_SAFE_STATIC T GlobalStatic<T>::instance = {};

^

Details

Committed
michaelplatingsApr 25 2019, 2:27 AM
Branches
Unknown
Tags
Unknown