[PATCH] clang: fix build on newer 32bit Slackware releases

Eric Hameleers via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 31 14:29:30 PDT 2019


Hi List

Please apply attached patch so that Slackware can compile clang on its current 
32bit releases without having to carry the patch ourselves.

Cheers, Eric

-- 
Eric Hameleers <alien at slackware.com>
Home: http://alien.slackbook.org/blog/
-------------- next part --------------
From 87296aa8f7773172195ffb096164b62a960e8ee5 Mon Sep 17 00:00:00 2001
From: Eric Hameleers <alien at slackware.com>
Date: Wed, 31 Jul 2019 21:41:33 +0200
Subject: [PATCH] clang: fix build on newer 32bit Slackware releases

---
 clang/lib/Driver/ToolChains/Gnu.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp
index 33cdd3585c2..81678421849 100644
--- a/clang/lib/Driver/ToolChains/Gnu.cpp
+++ b/clang/lib/Driver/ToolChains/Gnu.cpp
@@ -1964,7 +1964,8 @@ void Generic_GCC::GCCInstallationDetector::AddDefaultGCCPrefixes(
       "i586-redhat-linux",    "i386-redhat-linux",     "i586-suse-linux",
       "i486-slackware-linux", "i686-montavista-linux", "i586-linux-gnu",
       "i686-linux-android",   "i386-gnu",              "i486-gnu",
-      "i586-gnu",             "i686-gnu"};
+      "i586-gnu",             "i686-gnu",
+      "i586-slackware-linux", "i686-slackware-linux"};
 
   static const char *const MIPSLibDirs[] = {"/lib"};
   static const char *const MIPSTriples[] = {
-- 
2.14.5



More information about the llvm-commits mailing list