[clang] [Fuchsia] Support building runtimes for RISC-V on Linux (PR #66025)

Petr Hosek via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 11 15:52:28 PDT 2023


https://github.com/petrhosek created https://github.com/llvm/llvm-project/pull/66025:

We support RISC-V on Linux as the host platform for Fuchsia.

>From d852343fdeae38eb1e96791533c3811af24fe534 Mon Sep 17 00:00:00 2001
From: Petr Hosek <phosek at google.com>
Date: Mon, 11 Sep 2023 22:50:43 +0000
Subject: [PATCH] [Fuchsia] Support building runtimes for RISC-V on Linux

We support RISC-V on Linux as the host platform for Fuchsia.
---
 clang/cmake/caches/Fuchsia-stage2.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clang/cmake/caches/Fuchsia-stage2.cmake b/clang/cmake/caches/Fuchsia-stage2.cmake
index 4890040b1b6a2b4..bc4d9f1462b1814 100644
--- a/clang/cmake/caches/Fuchsia-stage2.cmake
+++ b/clang/cmake/caches/Fuchsia-stage2.cmake
@@ -132,7 +132,7 @@ if(WIN32 OR LLVM_WINSYSROOT)
   set(RUNTIMES_${target}_CMAKE_MODULE_LINKER_FLAGS ${WINDOWS_LINK_FLAGS} CACHE STRING "")
 endif()
 
-foreach(target aarch64-unknown-linux-gnu;armv7-unknown-linux-gnueabihf;i386-unknown-linux-gnu;x86_64-unknown-linux-gnu)
+foreach(target aarch64-unknown-linux-gnu;armv7-unknown-linux-gnueabihf;i386-unknown-linux-gnu;riscv64-unknown-linux-gnu;x86_64-unknown-linux-gnu)
   if(LINUX_${target}_SYSROOT)
     # Set the per-target builtins options.
     list(APPEND BUILTIN_TARGETS "${target}")



More information about the cfe-commits mailing list