[PATCH] D50547: [Driver] Use normalized triples for multiarch runtime path
Petr Hosek via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 9 19:01:10 PDT 2018
phosek created this revision.
phosek added reviewers: rnk, echristo, chandlerc, beanz.
Herald added subscribers: cfe-commits, JDevlieghere, mgorny.
Previously we used target triple as provided which matches the GCC
behavior, but it also means that all clients have to be consistent
in their spelling of target triples since e.g. x86_64-linux-gnu and
x86_64-unknown-linux-gnu will result in Clang driver looking at two
different paths when searching for runtime libraries.
Unfortunately, as it turned out many clients aren't consistent in
their spelling of target triples, e.g. many Linux distributions use
the shorter spelling but config.guess and rustc insist on using the
normalized variant which is causing issues. To avoid having to ship
multiple copies of runtimes for different triple spelling or rely on
symlinks which are not portable, we should use the normalized triple
when constructing paths for multiarch runtimes.
Repository:
rC Clang
https://reviews.llvm.org/D50547
Files:
clang/cmake/caches/Fuchsia-stage2.cmake
clang/lib/Driver/ToolChain.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50547.160047.patch
Type: text/x-patch
Size: 11940 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180810/bd27b8b8/attachment-0001.bin>
More information about the cfe-commits
mailing list