[llvm-commits] [dragonegg] r167528 - /dragonegg/trunk/Makefile

Duncan Sands baldrick at free.fr
Wed Nov 7 02:17:08 PST 2012


Author: baldrick
Date: Wed Nov  7 04:17:08 2012
New Revision: 167528

URL: http://llvm.org/viewvc/llvm-project?rev=167528&view=rev
Log:
Add -fno-rtti info explicitly, fixing PR14198, while waiting for PR14200 to be
fixed.  The issue here is that when compiling with ENABLE_LLVM_PLUGINS defined,
the file llvm/Support/PluginLoader.h is included, and this file defines a global
variable
  static cl::opt<PluginLoader, false, cl::parser<std::string> >
    LoadOpt("load", cl::ZeroOrMore, cl::value_desc("pluginfilename"),
            cl::desc("Load the specified plugin"));
If dragonegg is compiled with RTTI, then the vtable for this global may refer to
RTTI for the cl::opt class (when compiling with clang on darwin) causing linking
to fail as LLVM is built without RTTI.

Modified:
    dragonegg/trunk/Makefile

Modified: dragonegg/trunk/Makefile
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/Makefile?rev=167528&r1=167527&r2=167528&view=diff
==============================================================================
--- dragonegg/trunk/Makefile (original)
+++ dragonegg/trunk/Makefile Wed Nov  7 04:17:08 2012
@@ -77,6 +77,7 @@
 ALL_OBJECTS=$(PLUGIN_OBJECTS) $(TARGET_OBJECT) $(TARGET_UTIL_OBJECTS)
 
 CPP_OPTIONS+=$(CPPFLAGS) $(shell $(LLVM_CONFIG) --cppflags) \
+	     -fno-rtti \
 	     -MD -MP \
 	     -DIN_GCC -DLLVM_VERSION=\"$(LLVM_VERSION)\" \
 	     -DGCC_MAJOR=$(GCC_MAJOR) -DGCC_MINOR=$(GCC_MINOR) \





More information about the llvm-commits mailing list