[cfe-commits] [patch] Use the system unwind.h when that's available

Rafael Ávila de Espíndola rafael.espindola at gmail.com
Sun Feb 19 11:22:49 PST 2012


On 18/02/12 10:36 PM, Jeffrey Yasskin wrote:
> When trying to build libcxxabi on linux, I discovered that clang's
> unwind.h doesn't provide enough definitions. This patch allows linux
> builds to take advantage of libunwind if that's installed.
> 
> Another option would be to just copy the interfaces out of
> http://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/libgcc-s-ddefs.html,
> but since we're relying on the system to provide definitions anyway,
> it seems more sensible to try to pull the interface from the system
> too.

I would like for us to provide a drop in replacement for gcc and on
linux that unfortunately includes providing unwind.h.

Having said that, your patch is safe as it is a nop on systems without a
unwind.h in the default search patch.

LGTM.

> Jeffrey
> 

Cheers,
Rafael



More information about the cfe-commits mailing list