https://github.com/andreas-schwab updated https://github.com/llvm/llvm-project/pull/164614
>From d017218664a7db5aab464ec6553f36633fe5edd9 Mon Sep 17 00:00:00 2001 From: Andreas Schwab <[email protected]> Date: Mon, 20 Oct 2025 14:20:19 +0200 Subject: [PATCH] [Driver][RISCV] Add the riscv64-suse-linux triple Fixes #164228 --- clang/lib/Driver/ToolChains/Gnu.cpp | 6 +++--- clang/test/Driver/linux-ld.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp index 90fc71c147364d..4c045e004d90fc 100644 --- a/clang/lib/Driver/ToolChains/Gnu.cpp +++ b/clang/lib/Driver/ToolChains/Gnu.cpp @@ -2459,9 +2459,9 @@ void Generic_GCC::GCCInstallationDetector::AddDefaultGCCPrefixes( "riscv32-unknown-elf", "riscv32-redhat-linux"}; static const char *const RISCV64LibDirs[] = {"/lib64", "/lib"}; - static const char *const RISCV64Triples[] = {"riscv64-unknown-linux-gnu", - "riscv64-unknown-elf", - "riscv64-redhat-linux"}; + static const char *const RISCV64Triples[] = { + "riscv64-unknown-linux-gnu", "riscv64-unknown-elf", "riscv64-suse-linux", + "riscv64-redhat-linux"}; static const char *const RISCV32beLibDirs[] = {"/lib32", "/lib"}; static const char *const RISCV32beTriples[] = {"riscv32be-unknown-linux-gnu", diff --git a/clang/test/Driver/linux-ld.c b/clang/test/Driver/linux-ld.c index 922adf7a43115d..8abb94fd0e452f 100644 --- a/clang/test/Driver/linux-ld.c +++ b/clang/test/Driver/linux-ld.c @@ -715,7 +715,7 @@ // RUN: --sysroot=%S/Inputs/opensuse_tumbleweed_riscv64_tree \ // RUN: | FileCheck --check-prefix=CHECK-OPENSUSE-TW-RISCV64 %s // RUN: %clang -### %s -no-pie 2>&1 \ -// RUN: --target=riscv64-suse-linux -rtlib=platform --unwindlib=platform \ +// RUN: --target=riscv64-unknown-linux-gnu -rtlib=platform --unwindlib=platform \ // RUN: --sysroot=%S/Inputs/opensuse_tumbleweed_riscv64_tree \ // RUN: | FileCheck --check-prefix=CHECK-OPENSUSE-TW-RISCV64 %s // CHECK-OPENSUSE-TW-RISCV64: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]" _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
