57 lines
3.0 KiB
Diff
57 lines
3.0 KiB
Diff
--- clang/lib/Driver/ToolChains/Gnu.cpp
|
|
+++ clang/lib/Driver/ToolChains/Gnu.cpp
|
|
@@ -1812,7 +1812,7 @@
|
|
static const char *const AArch64LibDirs[] = {"/lib64", "/lib"};
|
|
static const char *const AArch64Triples[] = {
|
|
"aarch64-none-linux-gnu", "aarch64-linux-gnu", "aarch64-redhat-linux",
|
|
- "aarch64-suse-linux"};
|
|
+ "aarch64-suse-linux","aarch64-linux-musl"};
|
|
static const char *const AArch64beLibDirs[] = {"/lib"};
|
|
static const char *const AArch64beTriples[] = {"aarch64_be-none-linux-gnu",
|
|
"aarch64_be-linux-gnu"};
|
|
@@ -1822,7 +1822,9 @@
|
|
static const char *const ARMHFTriples[] = {"arm-linux-gnueabihf",
|
|
"armv7hl-redhat-linux-gnueabi",
|
|
"armv6hl-suse-linux-gnueabi",
|
|
- "armv7hl-suse-linux-gnueabi"};
|
|
+ "armv7hl-suse-linux-gnueabi",
|
|
+ "arm-linux-musleabihf",
|
|
+ "armv7l-linux-musleabihf"};
|
|
static const char *const ARMebLibDirs[] = {"/lib"};
|
|
static const char *const ARMebTriples[] = {"armeb-linux-gnueabi"};
|
|
static const char *const ARMebHFTriples[] = {
|
|
@@ -1835,14 +1837,15 @@
|
|
"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-amazon-linux", "x86_64-linux-musl"};
|
|
static const char *const X32LibDirs[] = {"/libx32"};
|
|
static const char *const X86LibDirs[] = {"/lib32", "/lib"};
|
|
static const char *const X86Triples[] = {
|
|
"i686-linux-gnu", "i686-pc-linux-gnu", "i486-linux-gnu",
|
|
"i386-linux-gnu", "i386-redhat-linux6E", "i686-redhat-linux",
|
|
"i586-redhat-linux", "i386-redhat-linux", "i586-suse-linux",
|
|
- "i486-slackware-linux", "i686-montavista-linux", "i586-linux-gnu"};
|
|
+ "i486-slackware-linux", "i686-montavista-linux", "i586-linux-gnu",
|
|
+ "i686-linux-musl"};
|
|
|
|
static const char *const MIPSLibDirs[] = {"/lib"};
|
|
static const char *const MIPSTriples[] = {"mips-linux-gnu", "mips-mti-linux",
|
|
@@ -1869,11 +1872,13 @@
|
|
static const char *const PPC64LibDirs[] = {"/lib64", "/lib"};
|
|
static const char *const PPC64Triples[] = {
|
|
"powerpc64-linux-gnu", "powerpc64-unknown-linux-gnu",
|
|
- "powerpc64-suse-linux", "ppc64-redhat-linux"};
|
|
+ "powerpc64-suse-linux", "ppc64-redhat-linux",
|
|
+ "powerpc64-linux-musl"};
|
|
static const char *const PPC64LELibDirs[] = {"/lib64", "/lib"};
|
|
static const char *const PPC64LETriples[] = {
|
|
"powerpc64le-linux-gnu", "powerpc64le-unknown-linux-gnu",
|
|
- "powerpc64le-suse-linux", "ppc64le-redhat-linux"};
|
|
+ "powerpc64le-suse-linux", "ppc64le-redhat-linux",
|
|
+ "powerpc64le-linux-musl"};
|
|
|
|
static const char *const RISCV32LibDirs[] = {"/lib", "/lib32"};
|
|
static const char *const RISCVTriples[] = {"riscv32-unknown-linux-gnu",
|