[LLVMdev] [PATCH] Select correct embedded libclang_rt on Darwin

Tim Northover t.p.northover at gmail.com
Wed Dec 11 06:52:15 PST 2013


>   When you decide to work on MachO/Darwin, I want to discuss the problems with ELF vs. EABI (http://llvm.org/PR18187).

Well, I'm doing it now to some extent (working on disentangling the
ARM backend's various uses of isTargetIOS, isTargetDarwin, isMoonFull
as a starting-point).

The thing is, the main advantage of Triples is that they're largely
GCC-compatible. Without that perspective, it's a mess: ELF/COFF/MachO,
AAPCS/APCS, RTABI/GNUABI, Little/big-endian, even 32/64-bit on targets
with both are all largely orthogonal, but we're lumbered with picking
3-4 names and running with it.

There's an argument for moving to an extensible attribute-based system
instead, but it'd be a lot of work even if everyone agreed it was a
good idea.

Tim.



More information about the llvm-dev mailing list