Hi, the rubinius project needs llvm built with REQUIRE_RTTI to successfully compile. It can use the system ruby, if it fits, but how can I find out, if llvm was build that way? thank you, Gibheer
Joerg Sonnenberger
2012-Apr-12 14:56 UTC
[LLVMdev] check if llvm was built with REQUIRE_RTTI
On Thu, Apr 12, 2012 at 11:34:24AM +0200, Gibheer wrote:> Hi, > > the rubinius project needs llvm built with REQUIRE_RTTI to > successfully compile. It can use the system ruby, if it fits, but how > can I find out, if llvm was build that way?Check for the presence of "typeinfo for ..." outside libLLVMSupport using nm -C? Joerg
On 12 Apr 2012, at 10:34, Gibheer wrote:> Hi, > > the rubinius project needs llvm built with REQUIRE_RTTI to > successfully compile. It can use the system ruby, if it fits, but how > can I find out, if llvm was build that way? > > thank you, > > GibheerYou could run llvm-config --cxxflags to get the C++ compiler flags to use for files that include LLVM headers and check if this contains "-fno-rtti".
On Fri, Apr 13, 2012 at 11:57 PM, Richard Osborne <richard at xmos.com> wrote:> > On 12 Apr 2012, at 10:34, Gibheer wrote: > >> Hi, >> >> the rubinius project needs llvm built with REQUIRE_RTTI to >> successfully compile. It can use the system ruby, if it fits, but how >> can I find out, if llvm was build that way? >> >> thank you, >> >> Gibheer > > You could run llvm-config --cxxflags to get the C++ compiler flags to use for files that include LLVM headers and check if this contains "-fno-rtti". >Ah, then rubinius already has the correct check. Maybe then something different is wrong with my installation. Thank you very much for your help.