mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-27 09:17:11 +00:00
Disable pthread support in googletest if llvm was configured without threads.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105390 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -27,6 +27,11 @@ CPP.Flags += -DGTEST_HAS_RTTI=0
|
|||||||
# supported by Clang, so force googletest to use its own tuple implementation.
|
# supported by Clang, so force googletest to use its own tuple implementation.
|
||||||
CPP.Flags += -DGTEST_USE_OWN_TR1_TUPLE
|
CPP.Flags += -DGTEST_USE_OWN_TR1_TUPLE
|
||||||
|
|
||||||
|
# Disable pthreads if LLVM was configured without them.
|
||||||
|
ifneq ($(HAVE_PTHREAD), 1)
|
||||||
|
CPP.Flags += -DGTEST_HAS_PTHREAD=0
|
||||||
|
endif
|
||||||
|
|
||||||
TESTLIBS = -lGoogleTest -lUnitTestMain
|
TESTLIBS = -lGoogleTest -lUnitTestMain
|
||||||
|
|
||||||
ifeq ($(ENABLE_SHARED), 1)
|
ifeq ($(ENABLE_SHARED), 1)
|
||||||
|
|||||||
@@ -22,4 +22,9 @@ CPP.Flags += -DGTEST_HAS_RTTI=0
|
|||||||
# supported by Clang, so force googletest to use its own tuple implementation.
|
# supported by Clang, so force googletest to use its own tuple implementation.
|
||||||
CPP.Flags += -DGTEST_USE_OWN_TR1_TUPLE
|
CPP.Flags += -DGTEST_USE_OWN_TR1_TUPLE
|
||||||
|
|
||||||
|
# Disable pthreads if LLVM was configured without them.
|
||||||
|
ifneq ($(HAVE_PTHREAD), 1)
|
||||||
|
CPP.Flags += -DGTEST_HAS_PTHREAD=0
|
||||||
|
endif
|
||||||
|
|
||||||
include $(LEVEL)/Makefile.common
|
include $(LEVEL)/Makefile.common
|
||||||
|
|||||||
@@ -25,6 +25,11 @@ CPP.Flags += -DGTEST_HAS_RTTI=0
|
|||||||
# supported by Clang, so force googletest to use its own tuple implementation.
|
# supported by Clang, so force googletest to use its own tuple implementation.
|
||||||
CPP.Flags += -DGTEST_USE_OWN_TR1_TUPLE
|
CPP.Flags += -DGTEST_USE_OWN_TR1_TUPLE
|
||||||
|
|
||||||
|
# Disable pthreads if LLVM was configured without them.
|
||||||
|
ifneq ($(HAVE_PTHREAD), 1)
|
||||||
|
CPP.Flags += -DGTEST_HAS_PTHREAD=0
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(HOST_OS),MingW)
|
ifeq ($(HOST_OS),MingW)
|
||||||
CPP.Flags += -DGTEST_OS_WINDOWS=1
|
CPP.Flags += -DGTEST_OS_WINDOWS=1
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user