[lldb-dev] Xcode builds

Reid Kleckner rnk at google.com
Fri May 2 13:02:36 PDT 2014


On Fri, May 2, 2014 at 12:00 PM, Greg Clayton <gclayton at apple.com> wrote:

> Looks like you are getting a conflict with the macros defined in:
>
> <mach/machine.h>
>
> and these are ruining the defines set in:
>
> "llvm/Support/MachO.h"
>
> So you aren't missing anything and I am not sure why things are different
> for us. I thought this was fixed by adding an underscore in front of all
> CPU_TYPE_XXX items in MachO.h that exactly matched macros in machine.h...
> It is really lame that a header file in LLVM is using macros that exactly
> match enums.
>

Feature, not a bug.  IMO it's lame that <mach/machine.h> uses macros
instead of enums.  ;)

Is <mach/machine.h> pulled in transitively, or is it an explicit include?
 If so, what's being used?  Can it be isolated to a single cpp file?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20140502/ad17ffc3/attachment.html>


More information about the lldb-dev mailing list