diff options
Diffstat (limited to 'unittests/Makefile.unittest')
-rw-r--r-- | unittests/Makefile.unittest | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/unittests/Makefile.unittest b/unittests/Makefile.unittest index 8fbcfd2..2a701a0 100644 --- a/unittests/Makefile.unittest +++ b/unittests/Makefile.unittest @@ -25,8 +25,12 @@ CPP.Flags += $(NO_MISSING_FIELD_INITIALIZERS) $(NO_VARIADIC_MACROS) CPP.Flags += -DGTEST_HAS_RTTI=0 # libstdc++'s TR1 <tuple> header depends on RTTI and uses C++'0x features not # supported by Clang, so force googletest to use its own tuple implementation. -# When we import googletest >=1.4.0, we can drop this line. -CPP.Flags += -DGTEST_HAS_TR1_TUPLE=0 +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 |