From 2e3f44eab2cd1ade5316f0a2eb5e57d87119d89c Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Thu, 3 Jun 2010 15:17:04 +0000 Subject: 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 --- unittests/Makefile.unittest | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'unittests/Makefile.unittest') diff --git a/unittests/Makefile.unittest b/unittests/Makefile.unittest index 6001c436e5..2a701a019d 100644 --- a/unittests/Makefile.unittest +++ b/unittests/Makefile.unittest @@ -27,6 +27,11 @@ CPP.Flags += -DGTEST_HAS_RTTI=0 # supported by Clang, so force googletest to use its own tuple implementation. 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 ifeq ($(ENABLE_SHARED), 1) -- cgit v1.2.3