[TableGen] Use std::fill instead of a manually coded loop. NFC
[oota-llvm.git] / utils / unittest / UnitTestMain / Makefile
index 202ccb8eeedc9f2c36fab1d95e8f1fb8c154b6fa..7bcb7249504925e943e06891c841f9dab59eaa5f 100644 (file)
@@ -11,7 +11,7 @@ LEVEL = ../../..
 
 include $(LEVEL)/Makefile.config
 
-LIBRARYNAME = UnitTestMain
+LIBRARYNAME = gtest_main
 BUILD_ARCHIVE = 1
 REQUIRES_RTTI = 1
 
@@ -22,4 +22,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
+
+NO_INSTALL = 1
+
 include $(LEVEL)/Makefile.common