llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-clang Author: Tulio Magno Quites Machado Filho (tuliom) <details> <summary>Changes</summary> Add the redhat vendor triples for riscv*. This is particularly important when running tests because there is no way to set compiler flags that are inherited by tests. --- Full diff: https://github.com/llvm/llvm-project/pull/228450.diff 1 Files Affected: - (modified) clang/lib/Driver/ToolChains/Gnu.cpp (+4-2) ``````````diff diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp index 7591d9f7fa418..90fc71c147364 100644 --- a/clang/lib/Driver/ToolChains/Gnu.cpp +++ b/clang/lib/Driver/ToolChains/Gnu.cpp @@ -2456,10 +2456,12 @@ void Generic_GCC::GCCInstallationDetector::AddDefaultGCCPrefixes( static const char *const RISCV32LibDirs[] = {"/lib32", "/lib"}; static const char *const RISCV32Triples[] = {"riscv32-unknown-linux-gnu", - "riscv32-unknown-elf"}; + "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-unknown-elf", + "riscv64-redhat-linux"}; static const char *const RISCV32beLibDirs[] = {"/lib32", "/lib"}; static const char *const RISCV32beTriples[] = {"riscv32be-unknown-linux-gnu", `````````` </details> https://github.com/llvm/llvm-project/pull/228450 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
