aboutsummaryrefslogtreecommitdiffstats
path: root/utils/unittest/UnitTestMain
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2010-06-03 07:51:58 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2010-06-03 07:51:58 +0000
commit8ef297e9451b678868fe08a249a5d1d101ee84bc (patch)
treede40a6ef42d09b31a9d56116053cf7c9d0f6a88a /utils/unittest/UnitTestMain
parent30ef0e5658b0b8b04437f73f74162d5d72923f29 (diff)
downloadexternal_llvm-8ef297e9451b678868fe08a249a5d1d101ee84bc.zip
external_llvm-8ef297e9451b678868fe08a249a5d1d101ee84bc.tar.gz
external_llvm-8ef297e9451b678868fe08a249a5d1d101ee84bc.tar.bz2
Turns out gtest still prefers the system <tr1/tuple> over it's own
implementation. Force the internal one to unbreak clang selfhost on linux. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105386 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/unittest/UnitTestMain')
-rw-r--r--utils/unittest/UnitTestMain/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/unittest/UnitTestMain/Makefile b/utils/unittest/UnitTestMain/Makefile
index 16ac38b..202ccb8 100644
--- a/utils/unittest/UnitTestMain/Makefile
+++ b/utils/unittest/UnitTestMain/Makefile
@@ -18,5 +18,8 @@ REQUIRES_RTTI = 1
CPP.Flags += -I$(LLVM_SRC_ROOT)/utils/unittest/googletest/include
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.
+CPP.Flags += -DGTEST_USE_OWN_TR1_TUPLE
include $(LEVEL)/Makefile.common