================
@@ -0,0 +1,39 @@
+# Build clang and compiler-rt targeting Baremetal RISC-V (cross-compiling)
+#
+# Use this as:
+#
+# $ cmake -GNinja -DCMAKE_BUILD_TYPE=Debug -DLLVM_ENABLE_PROJECTS=clang \
+# -DLLVM_ENABLE_RUNTIMES=compiler-rt \
+# -C../clang/cmake/caches/BaremetalRISCV.cmake ../llvm
+# $ ninja runtimes-riscv64-unknown-elf runtimes-riscv32-unknown-elf
+#
+set(TRIPLES riscv64-unknown-elf;riscv32-unknown-elf)
+set(LLVM_BUILTIN_TARGETS ${TRIPLES} CACHE STRING "")
+set(LLVM_RUNTIME_TARGETS ${TRIPLES} CACHE STRING "")
+set(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR ON CACHE BOOL "")
----------------
petrhosek wrote:
This is set automatically so you shouldn't need to set it manually.
https://github.com/llvm/llvm-project/pull/176353
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits