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

via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 11 20:20:28 PDT 2023


Author: Petr Hosek
Date: 2023-09-11T20:20:24-07:00
New Revision: 10e1c4a02be824c5394da4f2c79bc351eda19dc9

URL: https://github.com/llvm/llvm-project/commit/10e1c4a02be824c5394da4f2c79bc351eda19dc9
DIFF: https://github.com/llvm/llvm-project/commit/10e1c4a02be824c5394da4f2c79bc351eda19dc9.diff

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

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

Added: 
    

Modified: 
    clang/cmake/caches/Fuchsia-stage2.cmake

Removed: 
    


################################################################################
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