[llvm-bugs] [Bug 32475] New: __ELF__ not defined

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Mar 30 11:41:00 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=32475

            Bug ID: 32475
           Summary: __ELF__ not defined
           Product: libc++
           Version: 4.0
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: rianquinn at gmail.com
                CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com

When compiling libcxx / libcxxabi with clang --target=x86_64-elf, __ELF__ is
not defined, in which case the following defines COFF instead of ELF in
__config.h

#if defined(__ELF__)
#define _LIBCPP_OBJECT_FORMAT_ELF   1
#elif defined(__MACH__)
#define _LIBCPP_OBJECT_FORMAT_MACHO 1
#else
#define _LIBCPP_OBJECT_FORMAT_COFF  1
#endif

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170330/a233ae14/attachment.html>


More information about the llvm-bugs mailing list