[llvm-bugs] [Bug 49120] New: clang/lib/Driver/Distro.cpp should look at target triplet
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Feb 9 17:05:30 PST 2021
https://bugs.llvm.org/show_bug.cgi?id=49120
Bug ID: 49120
Summary: clang/lib/Driver/Distro.cpp should look at target
triplet
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: bero at lindev.ch
CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
neeilans at live.com, richard-llvm at metafoo.co.uk
Currently, clang/lib/Driver/Distro.cpp looks at the host system to determine
what distro it is targeting.
Given the way this information is used (e.g. --hash-style=gnu vs.
--hash-style=sysv vs. --hash-style=both in
clang/lib/Driver/ToolChains/Linux.cpp), it would make more sense to look at the
target triplet.
e.g. ToolChains/Linux.cpp says Redhat should use --hash-style=gnu and Debian
should use --hash-style=both. In the current situation, someone running
clang -target x86_64-debian-linux-gnu test.c
on an x86_64-redhat-linux-gnu box (essentially trying to crosscompile to
something very similar) will get --hash-style=gnu while the target system would
expect a binary to be built with --hash-style=both
--
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/20210210/41e3e7c6/attachment.html>
More information about the llvm-bugs
mailing list