From c5510caa2a0ce6ad9a153fee094fe50855313450 Mon Sep 17 00:00:00 2001 From: Dan Liew Date: Fri, 20 Dec 2013 08:15:46 +0000 Subject: Fix compilation of unittests under Clang. It seems the GTest header file in LLVM 3.3 (and possibly other versions) makes use of typeid() but the build system passes -fno-rtti. These are incompatible and if building with Clang then compilation will fail. GCC doesn't seem to care! --- unittests/Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'unittests') diff --git a/unittests/Makefile b/unittests/Makefile index 761987d6..dd005620 100644 --- a/unittests/Makefile +++ b/unittests/Makefile @@ -14,5 +14,9 @@ DIRS = Expr Solver Ref include $(LEVEL)/Makefile.common +# Remove -fno-rtti as this prevents typeid() being used +# in gtest +CXX.Flags := $(filter-out -fno-rtti,$(CPP.Flags)) + clean:: $(Verb) $(RM) -f *Tests -- cgit 1.4.1