[PATCH] D44153: Build system changes for RISCV

Azharuddin Mohammed via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 6 07:56:54 PST 2018


azharudd created this revision.
azharudd added reviewers: asb, apazos, mgrang, beanz.
Herald added subscribers: shiva0217, kito-cheng, mgorny.

Build system changes for RISCV. Makes it possible to build just the RISCV target alone.


Repository:
  rL LLVM

https://reviews.llvm.org/D44153

Files:
  cmake/config-ix.cmake


Index: cmake/config-ix.cmake
===================================================================
--- cmake/config-ix.cmake
+++ cmake/config-ix.cmake
@@ -441,6 +441,10 @@
   set(LLVM_NATIVE_ARCH WebAssembly)
 elseif (LLVM_NATIVE_ARCH MATCHES "wasm64")
   set(LLVM_NATIVE_ARCH WebAssembly)
+elseif (LLVM_NATIVE_ARCH MATCHES "riscv32")
+  set(LLVM_NATIVE_ARCH RISCV)
+elseif (LLVM_NATIVE_ARCH MATCHES "riscv64")
+  set(LLVM_NATIVE_ARCH RISCV)
 else ()
   message(FATAL_ERROR "Unknown architecture ${LLVM_NATIVE_ARCH}")
 endif ()


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44153.137195.patch
Type: text/x-patch
Size: 526 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180306/5532f8c5/attachment.bin>


More information about the llvm-commits mailing list