aboutsummaryrefslogtreecommitdiff
path: root/emulators/qemu-cheri
diff options
context:
space:
mode:
authorMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-07-17 08:39:43 +0000
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-07-17 09:11:46 +0000
commit4d6feef51008ddcefbbad0a35a172eef374de8a6 (patch)
treee94a931627727267bea3750156b5e1d6c9909654 /emulators/qemu-cheri
parent99da75e7dbda4a7905f910f6e99122f6a1b0512a (diff)
downloadports-4d6feef51008ddcefbbad0a35a172eef374de8a6.tar.gz
ports-4d6feef51008ddcefbbad0a35a172eef374de8a6.zip
emulators/qemu-cheri: Fix build with llvm16
Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'emulators/qemu-cheri')
-rw-r--r--emulators/qemu-cheri/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/emulators/qemu-cheri/Makefile b/emulators/qemu-cheri/Makefile
index 5d533c6349ed..4d39b694a166 100644
--- a/emulators/qemu-cheri/Makefile
+++ b/emulators/qemu-cheri/Makefile
@@ -62,6 +62,12 @@ EXTRA_CFLAGS= -DCHERI_UNALIGNED
PLIST_FILES= bin/qemu-system-morello \
bin/qemu-system-riscv64cheri
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+= -Wno-error=int-conversion
+.endif
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/build/qemu-system-morello \
${WRKSRC}/build/qemu-system-riscv64cheri \