summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/clang/Makefile.arch
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2021-04-29 05:32:02 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2021-04-29 05:32:02 +0000
commit12831d394308ca5613dbc7f9620835157b0b4f35 (patch)
tree2d41a8edbcfbd717be1d702b9f04333179726f78 /gnu/usr.bin/clang/Makefile.arch
parente51d7db7b987cab0b8c84e65243f2420e9486982 (diff)
riscv64 clang support.
With several fixes from review integrated. ok patrick@
Diffstat (limited to 'gnu/usr.bin/clang/Makefile.arch')
-rw-r--r--gnu/usr.bin/clang/Makefile.arch8
1 files changed, 5 insertions, 3 deletions
diff --git a/gnu/usr.bin/clang/Makefile.arch b/gnu/usr.bin/clang/Makefile.arch
index 6e544f15af3..f56ebf601c7 100644
--- a/gnu/usr.bin/clang/Makefile.arch
+++ b/gnu/usr.bin/clang/Makefile.arch
@@ -1,12 +1,14 @@
-# $OpenBSD: Makefile.arch,v 1.8 2020/08/03 14:45:22 patrick Exp $
+# $OpenBSD: Makefile.arch,v 1.9 2021/04/29 05:32:01 drahn Exp $
-LLVM_ARCHS=AArch64 AMDGPU ARM Mips PowerPC Sparc X86
+LLVM_ARCHS=AArch64 AMDGPU ARM Mips PowerPC RISCV Sparc X86
LLVM_ARCH?=
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
LLVM_ARCH= X86
.elif ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "powerpc64"
LLVM_ARCH= PowerPC
+.elif ${MACHINE_ARCH} == "riscv64"
+LLVM_ARCH= RISCV
.elif ${MACHINE_ARCH} == "sparc64"
LLVM_ARCH= Sparc
.elif ${MACHINE_ARCH} == "aarch64"
@@ -32,7 +34,7 @@ BACKEND_DESC+= LLVM${arch}Desc
BACKEND_DISASSEMBLER+= LLVM${arch}Disassembler
BACKEND_INFO+= LLVM${arch}Info
.if "${arch}" == "X86" || "${arch}" == "AArch64" || "${arch}" == "ARM" \
- || "${arch}" == "AMDGPU"
+ || "${arch}" == "AMDGPU" || "${arch}" == "RISCV"
BACKEND_UTILS+= LLVM${arch}Utils
.endif
.endif