[clang] Revert changes in AddDefaultGCCPrefixes() for SystemZTriples. (PR #94729)

via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 6 23:32:56 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Jonas Paulsson (JonPsson1)

<details>
<summary>Changes</summary>

This broke an Ubuntu build.

This partially reverts 20d497c (SystemZ part only).


---
Full diff: https://github.com/llvm/llvm-project/pull/94729.diff


1 Files Affected:

- (modified) clang/lib/Driver/ToolChains/Gnu.cpp (+2-2) 


``````````diff
diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp
index b141e5f2adfab..85a8414372f21 100644
--- a/clang/lib/Driver/ToolChains/Gnu.cpp
+++ b/clang/lib/Driver/ToolChains/Gnu.cpp
@@ -2569,8 +2569,8 @@ void Generic_GCC::GCCInstallationDetector::AddDefaultGCCPrefixes(
 
   static const char *const SystemZLibDirs[] = {"/lib64", "/lib"};
   static const char *const SystemZTriples[] = {
-      "s390x-unknown-linux-gnu", "s390x-ibm-linux-gnu", "s390x-suse-linux",
-      "s390x-redhat-linux"};
+      "s390x-linux-gnu", "s390x-unknown-linux-gnu", "s390x-ibm-linux-gnu",
+      "s390x-suse-linux", "s390x-redhat-linux"};
 
   using std::begin;
   using std::end;

``````````

</details>


https://github.com/llvm/llvm-project/pull/94729


More information about the cfe-commits mailing list