[PATCH] D124830: [Bazel] Add support for targeting Linux riscv64

Andreas Schwab via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 3 01:33:24 PDT 2022


schwab created this revision.
Herald added subscribers: sunshaoce, VincentWu, luke957, vkmr, evandro, sameer.abuasal, s.egerton, Jim, benna, psnobl, rogfer01, kito-cheng, simoncook, arichardson.
Herald added a project: All.
schwab requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, eopXD.
Herald added a project: LLVM.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D124830

Files:
  utils/bazel/llvm-project-overlay/llvm/config.bzl


Index: utils/bazel/llvm-project-overlay/llvm/config.bzl
===================================================================
--- utils/bazel/llvm-project-overlay/llvm/config.bzl
+++ utils/bazel/llvm-project-overlay/llvm/config.bzl
@@ -85,6 +85,7 @@
     "@bazel_tools//src/conditions:darwin_arm64": native_arch_defines("AArch64", "arm64-apple-darwin"),
     "@bazel_tools//src/conditions:darwin_x86_64": native_arch_defines("X86", "x86_64-unknown-darwin"),
     "@bazel_tools//src/conditions:linux_aarch64": native_arch_defines("AArch64", "aarch64-unknown-linux-gnu"),
+    "@bazel_tools//src/conditions:linux_riscv64": native_arch_defines("RISCV", "riscv64-unknown-linux-gnu"),
     "//conditions:default": native_arch_defines("X86", "x86_64-unknown-linux-gnu"),
 }) + [
     # These shouldn't be needed by the C++11 standard, but are for some


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124830.426598.patch
Type: text/x-patch
Size: 844 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220503/0bdd1df5/attachment.bin>


More information about the llvm-commits mailing list