[clang] Add powerpc64le-none-linux-gnu to gnu toolchain for PPC64
authorclementval <clementval@gmail.com>
Fri, 8 Jan 2021 01:07:53 +0000 (20:07 -0500)
committerclementval <clementval@gmail.com>
Fri, 8 Jan 2021 01:08:20 +0000 (20:08 -0500)
While trying to compile clang and openmp with a freshly built clang with the gcc/7.4.0
toolchain on the Summit supercomputer I face some error because of the triple under which
the GCC toolchain is installed was not present in for PPC64LE triples.
This patch add the powerpc64le-none-linux-gnu used on system like Summit and Ascent.

Reviewed By: jdenny

Differential Revision: https://reviews.llvm.org/D94261

clang/lib/Driver/ToolChains/Gnu.cpp

index 336ee13..1633334 100644 (file)
@@ -2161,7 +2161,8 @@ void Generic_GCC::GCCInstallationDetector::AddDefaultGCCPrefixes(
   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-none-linux-gnu", "powerpc64le-suse-linux",
+      "ppc64le-redhat-linux"};
 
   static const char *const RISCV32LibDirs[] = {"/lib32", "/lib"};
   static const char *const RISCV32Triples[] = {"riscv32-unknown-linux-gnu",