[llvm-commits] [PATCH] CMake unittests should compile without RTTI

Frits van Bommel fvbommel at gmail.com
Thu Jan 13 06:37:17 PST 2011


It seems that when the CMake build is configured to compile with
unittests it does so with RTTI information enabled, which causes
linker errors because it tries to link them to an RTTI-less LLVM. This
is a recent problem by the way, it worked just fine last week.

The attached patch is a quick and dirty fix for this, but I'm not sure
if it's the right approach.
Since I couldn't find any way to *enable* RTTI for LLVM in the cmake
configuration, I just assumed it should always be off.

By the way, are there no buildbots running CMake with unittests
enabled? None of them seem to have failed over this...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 001-cmake-unittests-no-rtti.patch
Type: text/x-diff
Size: 483 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110113/87b84d68/attachment.patch>


More information about the llvm-commits mailing list