https://bugs.llvm.org/show_bug.cgi?id=47036
Bug ID: 47036
Summary: Clang: The "x86_64-unknown-elf" target does not define
__ELF__
Product: clang
Version: 10.0
Hardware: PC
OS: other
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangb...@nondot.org
Reporter: kaeptmblaubaer1...@gmail.com
CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org,
neeil...@live.com, richard-l...@metafoo.co.uk
kb1000 <kaeptmblaubaer1...@gmail.com>
Do., 6. Aug., 22:17 (vor 17 Stunden)
an Visual
Minimal reproduction:
clang -E -dM -target x86_64-unknown-elf -x c /dev/null
vs.
clang -E -dM -target x86_64-unknown-linux-elf -x c /dev/null
While you won't see __ELF__ for the first command, you will see it for the
second command.
Please note that I only verified this against clang 10.0.1.
I originally noticed this while trying to compile the Firework Kernel
(https://github.com/Firework-OS/Kernel) on Termux, which uses libc++, which in
turn complains if it does not detect the object file format.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs