  
    static const char *const MIPSLibDirs[] = {"/lib"};
    static const char *const MIPSTriples[] = {
-@@ -1945,11 +1948,13 @@ void Generic_GCC::GCCInstallationDetector::AddDefaultGCCPrefixes(
+       "mips-linux-gnu", "mips-mti-linux", "mips-mti-linux-gnu",
+-      "mips-img-linux-gnu", "mipsisa32r6-linux-gnu"};
++      "mips-img-linux-gnu", "mipsisa32r6-linux-gnu", "mips-linux-musl",
++      "mipsel-linux-musl", "mipsel-linux-muslhf", "mips-linux-muslhf"};
+   static const char *const MIPSELLibDirs[] = {"/lib"};
+   static const char *const MIPSELTriples[] = {
+       "mipsel-linux-gnu", "mips-img-linux-gnu", "mipsisa32r6el-linux-gnu",
+@@ -1945,11 +1950,13 @@
    static const char *const PPC64LibDirs[] = {"/lib64", "/lib"};
    static const char *const PPC64Triples[] = {
        "powerpc64-linux-gnu", "powerpc64-unknown-linux-gnu",

   static const char *const ARMebLibDirs[] = {"/lib"};
   static const char *const ARMebTriples[] = {"armeb-linux-gnueabi",
                                              "armeb-linux-androideabi"};
@@ -1896,7 +1898,8 @@ void Generic_GCC::GCCInstallationDetector::AddDefaultGCCPrefixes(
       "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",

--- lib/Driver/ToolChains/Gnu.cpp.orig	2019-03-30 15:08:33.136000000 +0100
+++ lib/Driver/ToolChains/Gnu.cpp	2019-03-30 15:10:24.666000000 +0100
@@ -1871,7 +1871,7 @@
   static const char *const AArch64LibDirs[] = {"/lib64", "/lib"};
   static const char *const AArch64Triples[] = {
       "aarch64-none-linux-gnu", "aarch64-linux-gnu", "aarch64-redhat-linux",
