> -----Original Message----- > From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] > On Behalf Of Óscar Fuentes > > Vladimir Pouzanov <farcaller at gmail.com> writes: > > > On Dec 10, 2012, at 21:57, Jim Grosbach <grosbach at apple.com> wrote: > >> Llvm typically doesn't build with RTTI enabled. Perhaps that's what > >> you're running into? > >> > > I've actually tried to compile both LLVM and my lib with -frtti with > > same results. > > Please show the exact commands you used for building LLVM with RTTI > support. > > It would also help if you repeat your recipe for building LLVM but appending > to your `make' command the text "VERBOSE=1" and then show the compiler > command line for one .cpp file (lib/MC/MCAsmInfo.cpp is the best > candidate.) >There is (was?) a CMake variable for this if you're going that route. Setting LLVM_REQUIRES_RTTI=1 enabled an RTTI build that I haven't had issues with. I don't know what the ./configure equivalent is, sorry. -Gordon> _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Gordon Keiser <gkeiser at arxan.com> writes:> There is (was?) a CMake variable for this if you're going that route. > Setting LLVM_REQUIRES_RTTI=1 enabled an RTTI build that I haven't had > issues with. I don't know what the ./configure equivalent is, sorry.LLVM_REQUIRES_RTTI is an internal variable. It works as you say, but there is no guarantee about it. Adding a proper option for enabling RTTI on the CMake build is trivial, and IMO it is useful too.
> -----Original Message----- > From: Óscar Fuentes [mailto:ofv at wanadoo.es] > Sent: Monday, December 10, 2012 8:51 PM > To: Gordon Keiser > Cc: llvmdev at cs.uiuc.edu > Subject: Re: [LLVMdev] typeinfo for llvm::MCAsmInfo is missing > > Gordon Keiser <gkeiser at arxan.com> writes: > > > There is (was?) a CMake variable for this if you're going that route. > > Setting LLVM_REQUIRES_RTTI=1 enabled an RTTI build that I haven't had > > issues with. I don't know what the ./configure equivalent is, sorry. > > LLVM_REQUIRES_RTTI is an internal variable. It works as you say, but there is > no guarantee about it. > > Adding a proper option for enabling RTTI on the CMake build is trivial, and > IMO it is useful too.Thanks Oscar, I wasn't aware of that. I've been using it for some time now, and don't use the CMake GUI so I always assumed it was a standard option. I'll pass this along. :-) -Gordon