[clang] [llvm] [cmake] Add config for riscv(32|64)-unknown-elf (PR #176353)
Ramkumar Ramachandra via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 16 14:14:51 PST 2026
================
@@ -242,7 +242,8 @@ elseif(FUCHSIA OR UNIX OR CYGWIN)
else()
set(LLVM_HAVE_LINK_VERSION_SCRIPT 1)
endif()
-elseif(CMAKE_SYSTEM_NAME STREQUAL "Generic")
+elseif(CMAKE_SYSTEM_NAME STREQUAL "Generic" OR
+ CMAKE_SYSTEM_NAME STREQUAL "Generic-ELF")
----------------
artagnon wrote:
>From the CMake documentation of CMAKE_SYSTEM_NAME, Generic-ELF seemed more appropriate as the triple is riscv(32|64)-unknown-elf? The doc says "Generic ELF (Executable and Linkable Format) environment", although I'm not entire sure what the difference is?
https://github.com/llvm/llvm-project/pull/176353
More information about the cfe-commits
mailing list