mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-12 07:40:58 +00:00
Patch gtest to move GTEST_IS_THREADSAFE out of unrelated GTEST_HAS_SEH ifdef
Fixes the sanitizer Windows build, which happens to set -DGTEST_HAS_SEH=0. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291038 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d2519511ab
commit
eb7f57f21d
@ -916,13 +916,13 @@ using ::std::tuple_size;
|
|||||||
# define GTEST_HAS_SEH 0
|
# define GTEST_HAS_SEH 0
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
#endif // GTEST_HAS_SEH
|
||||||
|
|
||||||
#define GTEST_IS_THREADSAFE \
|
#define GTEST_IS_THREADSAFE \
|
||||||
(GTEST_HAS_MUTEX_AND_THREAD_LOCAL_ \
|
(GTEST_HAS_MUTEX_AND_THREAD_LOCAL_ \
|
||||||
|| (GTEST_OS_WINDOWS && !GTEST_OS_WINDOWS_PHONE && !GTEST_OS_WINDOWS_RT) \
|
|| (GTEST_OS_WINDOWS && !GTEST_OS_WINDOWS_PHONE && !GTEST_OS_WINDOWS_RT) \
|
||||||
|| GTEST_HAS_PTHREAD)
|
|| GTEST_HAS_PTHREAD)
|
||||||
|
|
||||||
#endif // GTEST_HAS_SEH
|
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
# if GTEST_LINKED_AS_SHARED_LIBRARY
|
# if GTEST_LINKED_AS_SHARED_LIBRARY
|
||||||
# define GTEST_API_ __declspec(dllimport)
|
# define GTEST_API_ __declspec(dllimport)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user