Functionally revert "config: disable thread safety analysis on COFF". am: 0680af7288 am: 9168854bc9
am: 40a97db909
Change-Id: I060914da4e60b8b8743cd3eb638f78c5b04ca1f0
This commit is contained in:
@@ -1219,14 +1219,9 @@ _LIBCPP_FUNC_VIS extern "C" void __sanitizer_annotate_contiguous_container(
|
||||
|
||||
#if defined(_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS)
|
||||
# if defined(__clang__) && __has_attribute(acquire_capability)
|
||||
// Work around the attribute handling in clang. When both __declspec and
|
||||
// __attribute__ are present, the processing goes awry preventing the definition
|
||||
// of the types.
|
||||
# if !defined(_LIBCPP_OBJECT_FORMAT_COFF)
|
||||
# define _LIBCPP_HAS_THREAD_SAFETY_ANNOTATIONS
|
||||
# endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if __has_attribute(require_constant_initialization)
|
||||
# define _LIBCPP_SAFE_STATIC __attribute__((__require_constant_initialization__))
|
||||
|
||||
Reference in New Issue
Block a user