Daniel Dunbar | f845c74 | 2009-09-13 21:31:21 +0000 | [diff] [blame] | 1 | ##===- utils/unittest/UnitTestMain/Makefile ----------------*- Makefile -*-===## |
| 2 | # |
| 3 | # The LLVM Compiler Infrastructure |
| 4 | # |
| 5 | # This file is distributed under the University of Illinois Open Source |
| 6 | # License. See LICENSE.TXT for details. |
| 7 | # |
| 8 | ##===----------------------------------------------------------------------===## |
| 9 | |
| 10 | LEVEL = ../../.. |
| 11 | |
| 12 | include $(LEVEL)/Makefile.config |
| 13 | |
| 14 | LIBRARYNAME = UnitTestMain |
| 15 | BUILD_ARCHIVE = 1 |
Chris Lattner | 43b5f93 | 2010-01-24 20:43:08 +0000 | [diff] [blame] | 16 | REQUIRES_RTTI = 1 |
Chandler Carruth | 315b1bb | 2010-03-09 22:45:10 +0000 | [diff] [blame] | 17 | |
Daniel Dunbar | f845c74 | 2009-09-13 21:31:21 +0000 | [diff] [blame] | 18 | CPP.Flags += -I$(LLVM_SRC_ROOT)/utils/unittest/googletest/include |
Daniel Dunbar | 848454a | 2009-09-20 06:17:12 +0000 | [diff] [blame] | 19 | CPP.Flags += $(NO_MISSING_FIELD_INITIALIZERS) $(NO_VARIADIC_MACROS) |
Chandler Carruth | 315b1bb | 2010-03-09 22:45:10 +0000 | [diff] [blame] | 20 | CPP.Flags += -DGTEST_HAS_RTTI=0 |
Benjamin Kramer | 8ef297e | 2010-06-03 07:51:58 +0000 | [diff] [blame] | 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 |
Daniel Dunbar | f845c74 | 2009-09-13 21:31:21 +0000 | [diff] [blame] | 24 | |
| 25 | include $(LEVEL)/Makefile.common |