Revert 94484. Re-disable unittests that need RTTI.
[oota-llvm.git] / unittests / Makefile.unittest
1 ##===- unittests/Makefile.unittest -------------------------*- 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 # This file is included by all of the unit test makefiles.
11 #
12 ##===----------------------------------------------------------------------===##
13
14 # Set up variables for building a unit test.
15 ifdef TESTNAME
16
17 REQUIRES_RTTI = 1
18
19 include $(LEVEL)/Makefile.common
20
21 LLVMUnitTestExe = $(BuildMode)/$(TESTNAME)Tests$(EXEEXT)
22
23 CPP.Flags += -I$(LLVM_SRC_ROOT)/utils/unittest/googletest/include/
24 CPP.Flags += $(NO_VARIADIC_MACROS)
25 TESTLIBS = -lGoogleTest -lUnitTestMain
26
27 $(LLVMUnitTestExe): $(ObjectsO) $(ProjLibsPaths) $(LLVMLibsPaths)
28         $(Echo) Linking $(BuildMode) unit test $(TESTNAME) $(StripWarnMsg)
29         $(Verb) $(Link) -o $@ $(TOOLLINKOPTS) $(ObjectsO) $(ProjLibsOptions) \
30         $(TESTLIBS) $(LLVMLibsOptions) $(ExtraLibs) $(TOOLLINKOPTSB) $(LIBS)
31         $(Echo) ======= Finished Linking $(BuildMode) Unit test $(TESTNAME) \
32           $(StripWarnMsg)
33
34 all:: $(LLVMUnitTestExe)
35
36 unitcheck:: $(LLVMUnitTestExe)
37         $(LLVMUnitTestExe)
38
39 endif