git: 91f85b5dcc80 - main - devel/llvm-{cheri,morello}: align warning with base
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 20 Feb 2025 17:49:25 UTC
The branch main has been updated by brooks:
URL: https://cgit.FreeBSD.org/ports/commit/?id=91f85b5dcc806c32048605e7dda534576bfd0c19
commit 91f85b5dcc806c32048605e7dda534576bfd0c19
Author: Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2025-02-20 17:35:12 +0000
Commit: Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2025-02-20 17:43:21 +0000
devel/llvm-{cheri,morello}: align warning with base
FreeBSD's base llvm currently makes -Wimplicit-int and
-Wimplicit-function-declaration not produce errors by default (see
c3450ad127e94d3fa67ae337310e59c002f51bfc) which means a chunk
of the ports collection depends on this behavior. Until this is resolve
we need to mirror that behavior on CheriBSD.
Sponsored by: DARPA, AFRL
---
devel/llvm-cheri/Makefile | 2 +-
devel/llvm-cheri/files/wrapper-cheri.sh.in | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/devel/llvm-cheri/Makefile b/devel/llvm-cheri/Makefile
index b79256732509..22aa8a1b0bc0 100644
--- a/devel/llvm-cheri/Makefile
+++ b/devel/llvm-cheri/Makefile
@@ -1,6 +1,6 @@
PORTNAME= llvm
PORTVERSION= ${LLVM_MAJOR}.0.d${SNAPDATE}
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= devel lang
PKGNAMESUFFIX= ${LLVM_SUFFIX}
diff --git a/devel/llvm-cheri/files/wrapper-cheri.sh.in b/devel/llvm-cheri/files/wrapper-cheri.sh.in
index da080f250d3f..46f5244c3c06 100644
--- a/devel/llvm-cheri/files/wrapper-cheri.sh.in
+++ b/devel/llvm-cheri/files/wrapper-cheri.sh.in
@@ -184,6 +184,7 @@ if [ $CHERIBSD_VERSION -gt 0 ]; then
arch_cflags="-march=rv64gcxcheri -mabi=$mabi -mno-relax"
;;
esac
+ arch_cflags="${arch_cflags} -Wno-implicit-int -Wno-implicit-function-declaration"
fi
case $basetool in