Silence -Wunused-variable in release builds.
[llvm/stm8.git] / utils / unittest / UnitTestMain / Makefile
blob30827795aff9795c3a5d355186067fed6687721a
1 ##===- utils/unittest/UnitTestMain/Makefile ----------------*- Makefile -*-===##
3 # The LLVM Compiler Infrastructure
5 # This file is distributed under the University of Illinois Open Source
6 # License. See LICENSE.TXT for details.
8 ##===----------------------------------------------------------------------===##
10 LEVEL = ../../..
12 include $(LEVEL)/Makefile.config
14 LIBRARYNAME = UnitTestMain
15 BUILD_ARCHIVE = 1
16 REQUIRES_RTTI = 1
18 CPP.Flags += -I$(LLVM_SRC_ROOT)/utils/unittest/googletest/include
19 CPP.Flags += $(NO_MISSING_FIELD_INITIALIZERS) $(NO_VARIADIC_MACROS)
20 CPP.Flags += -DGTEST_HAS_RTTI=0
21 # libstdc++'s TR1 <tuple> header depends on RTTI and uses C++'0x features not
22 # supported by Clang, so force googletest to use its own tuple implementation.
23 CPP.Flags += -DGTEST_USE_OWN_TR1_TUPLE
25 # Disable pthreads if LLVM was configured without them.
26 ifneq ($(HAVE_PTHREAD), 1)
27 CPP.Flags += -DGTEST_HAS_PTHREAD=0
28 endif
30 NO_INSTALL = 1
32 include $(LEVEL)/Makefile.common