[cfe-dev] [libunwind] __ELF__ macro for arm-none-eabi

Renato Golin via cfe-dev cfe-dev at lists.llvm.org
Sat Apr 16 04:41:54 PDT 2016


On 16 April 2016 at 01:44, Zhao, Weiming via cfe-dev
<cfe-dev at lists.llvm.org> wrote:
> I'm building libunwind for ARM baremetal using clang.
> I notice that __ELF__ is used in libunwind and the macro is only defined for
> Linux target on ARM.
> Should we also predefine that for arm-none-eabi target?

Do you mean in Clang's ARMTargetInfo::getTargetDefines() ?

I think so. I'm actually surprised it doesn't.

Copying Bradley and Silviu, as they were working on ACLE pre-processor
logic recently.

cheers,
--renato



More information about the cfe-dev mailing list