aboutsummaryrefslogtreecommitdiffstats
path: root/main/llvm/clang-0006-musl-alpine-triple.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/llvm/clang-0006-musl-alpine-triple.patch')
-rw-r--r--main/llvm/clang-0006-musl-alpine-triple.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/main/llvm/clang-0006-musl-alpine-triple.patch b/main/llvm/clang-0006-musl-alpine-triple.patch
new file mode 100644
index 0000000000..1c5d31e8e4
--- /dev/null
+++ b/main/llvm/clang-0006-musl-alpine-triple.patch
@@ -0,0 +1,38 @@
+diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp
+index 6007a98..44e929f 100644
+--- a/lib/Driver/ToolChains.cpp
++++ b/lib/Driver/ToolChains.cpp
+@@ -1296,7 +1296,9 @@ bool Generic_GCC::GCCInstallationDetector::getBiarchSibling(Multilib &M) const {
+ static const char *const ARMTriples[] = { "arm-linux-gnueabi",
+ "arm-linux-androideabi" };
+ static const char *const ARMHFTriples[] = { "arm-linux-gnueabihf",
+- "armv7hl-redhat-linux-gnueabi" };
++ "armv7hl-redhat-linux-gnueabi",
++ "armv6-alpine-linux-musleabihf",
++ "armv7-alpine-linux-musleabihf"};
+ static const char *const ARMebLibDirs[] = { "/lib" };
+ static const char *const ARMebTriples[] = { "armeb-linux-gnueabi",
+ "armeb-linux-androideabi" };
+@@ -1308,7 +1310,8 @@ bool Generic_GCC::GCCInstallationDetector::getBiarchSibling(Multilib &M) const {
+ "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-linux-android", "x86_64-unknown-linux"
++ "x86_64-linux-android", "x86_64-alpine-linux-musl", "x86_64-pc-linux-musl",
++ "x86_64-unknown-linux"
+ };
+ static const char *const X32LibDirs[] = { "/libx32" };
+ static const char *const X86LibDirs[] = { "/lib32", "/lib" };
+@@ -1316,7 +1319,9 @@ bool Generic_GCC::GCCInstallationDetector::getBiarchSibling(Multilib &M) const {
+ "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", "i686-linux-android", "i586-linux-gnu"
++ "i686-montavista-linux", "i686-linux-android", "i586-linux-gnu",
++ "i486-alpine-linux-musl", "i486-pc-linux-musl",
++ "i686-alpine-linux-musl", "i686-pc-linux-musl"
+ };
+
+ static const char *const MIPSLibDirs[] = { "/lib" };
+--
+2.1.4