[LLVMdev] Exception handling with the LLVM makefile system
Pablo Barrio
pbarrio at die.upm.es
Mon May 16 07:44:40 PDT 2011
Hi all,
I'm having trouble when trying to reuse some functions that use
Boost::Exception into my LLVM-based application. As far as I know, LLVM
turns off Exception handling (apparently for performance reasons), so I
get the following link-time error in a few places:
"undefined reference to `boost::throw_exception(std::exception const&)"
When I compile the external code from outside the LLVM Makefile system,
everything goes well. Is it possible to enable exception handling for
some parts of the compilation? Just like turning on RTTI with
"REQUIRES_RTTI=1" ? Removing exception handling from the functions is
not an option, since I would have to tweak the Boost library internals.
Thanks ahead!
--
Pablo Barrio
Dpto. Ing. Electrónica - E.T.S.I. Telecomunicación
Despacho C-203
Avda. Complutense s/n, 28040 Madrid
Tlf. 915495700 ext. 4234
@: pbarrio at die.upm.es
More information about the llvm-dev
mailing list