Il giorno 18/mar/2013, alle ore 18:47, Óscar Fuentes ha scritto:> > You can try building LLVM with > > CXXFLAGS=-frtti configure .... > CXXFLAGS=-frtti make ... > > I'm not sure if CXXFLAGS takes precedence over the hard-coded -fno-rtti > in the makefiles, though. > > With the cmake build, you can try as above (but replacing `configure' > with `cmake') or, better: > > cmake -DLLVM_REQUIRES_RTTI=ON ... rest of cmake args ... > > Adding an option for enabling RTTI on the cmake build is trivial. Dunno > about the `configure' build. You can try filing a feature request on > Bugzilla.Ok, I've managed to refactor some code and remove uses of dynamic_cast. Making my project work without rtti is a good thing anyway, but I'm curious about why this problem didn't arised months ago with previours llvm versions... Bye, Nicola
Nicola Gigante <nicola.gigante at gmail.com> writes:>> Adding an option for enabling RTTI on the cmake build is trivial. Dunno >> about the `configure' build. You can try filing a feature request on >> Bugzilla. > > Ok, I've managed to refactor some code and remove uses of dynamic_cast. > Making my project work without rtti is a good thing anyway, but I'm curious > about why this problem didn't arised months ago with previours llvm versions...A quick look at the VC history of lib/Support/Makefile explains it: commit 475832cc0fbf622dfe1db484c2db57cc2d97a530 Author: Joerg Sonnenberger Date: Fri Oct 26 12:15:29 2012 +0000 Don't explicitly require RTTI and EH. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk at 166772 91177308-0d34-0410-b5e6-96231b3b80d8 That means that until that change LLVMSupport library was compiled with RTTI and EH on.
Il giorno 20/mar/2013, alle ore 14:59, Óscar Fuentes ha scritto:> Nicola Gigante <nicola.gigante at gmail.com> writes: > >>> Adding an option for enabling RTTI on the cmake build is trivial. Dunno >>> about the `configure' build. You can try filing a feature request on >>> Bugzilla. >> >> Ok, I've managed to refactor some code and remove uses of dynamic_cast. >> Making my project work without rtti is a good thing anyway, but I'm curious >> about why this problem didn't arised months ago with previours llvm versions... > > A quick look at the VC history of lib/Support/Makefile explains it: > > commit 475832cc0fbf622dfe1db484c2db57cc2d97a530 > Author: Joerg Sonnenberger > Date: Fri Oct 26 12:15:29 2012 +0000 > > Don't explicitly require RTTI and EH. > > > git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk at 166772 91177308-0d34-0410-b5e6-96231b3b80d8 > > That means that until that change LLVMSupport library was compiled with > RTTI and EH on.Yeah, this explains everything. Thank you! Nicola