[PATCH] D104831: [clang] Add x86_64-redhat-linux-gnu as a platform triplet
Hongtao Yu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 23 18:43:40 PDT 2021
hoy created this revision.
Herald added subscribers: modimo, wenlei, pengfei.
hoy requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Clang requires a valid/compatible installation of gcc from which it includes some internal headers. Typically clang automatically detects the correct installation of gcc from the set of gcc's installed on the system at standard locations. Adding the platform tripplet `x86_64-redhat-linux-gnu`the while list of supported x86_64 triplets so that it can be used with the `--gcc-toolchain` option to bypass this process and force-pick a given gcc install.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D104831
Files:
clang/lib/Driver/ToolChains/Gnu.cpp
Index: clang/lib/Driver/ToolChains/Gnu.cpp
===================================================================
--- clang/lib/Driver/ToolChains/Gnu.cpp
+++ clang/lib/Driver/ToolChains/Gnu.cpp
@@ -2100,12 +2100,13 @@
static const char *const X86_64LibDirs[] = {"/lib64", "/lib"};
static const char *const X86_64Triples[] = {
- "x86_64-linux-gnu", "x86_64-unknown-linux-gnu",
- "x86_64-pc-linux-gnu", "x86_64-redhat-linux6E",
- "x86_64-redhat-linux", "x86_64-suse-linux",
- "x86_64-manbo-linux-gnu", "x86_64-linux-gnu",
- "x86_64-slackware-linux", "x86_64-unknown-linux",
- "x86_64-amazon-linux", "x86_64-linux-android"};
+ "x86_64-linux-gnu", "x86_64-unknown-linux-gnu",
+ "x86_64-pc-linux-gnu", "x86_64-redhat-linux6E",
+ "x86_64-redhat-linux-gnu", "x86_64-redhat-linux",
+ "x86_64-suse-linux", "x86_64-manbo-linux-gnu",
+ "x86_64-linux-gnu", "x86_64-slackware-linux",
+ "x86_64-unknown-linux", "x86_64-amazon-linux",
+ "x86_64-linux-android"};
static const char *const X32Triples[] = {"x86_64-linux-gnux32",
"x86_64-pc-linux-gnux32"};
static const char *const X32LibDirs[] = {"/libx32", "/lib"};
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104831.354133.patch
Type: text/x-patch
Size: 1261 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210624/2dc174a7/attachment.bin>
More information about the cfe-commits
mailing list