Skip to content

Commit

Permalink
c18n: Enable -morello-bounded-memargs for purecap userland
Browse files Browse the repository at this point in the history
And bump PORTVERSION.

The `cc` script will use this flag by default starting with the CheriBSD
24.04.
  • Loading branch information
dpgao committed Mar 16, 2024
1 parent 9d3cbfe commit 1bd26bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion devel/llvm-base/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PORTNAME= llvm
PORTVERSION= 5
PORTVERSION= 20240315
CATEGORIES= devel lang
MASTER_SITES= # not applicable
DISTFILES= # not applicable
Expand Down
5 changes: 4 additions & 1 deletion devel/llvm-base/files/wrapper.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,12 @@ aarch64c)
elif [ "$CHERIBSD_VERSION" -le 20220828 ]; then
tls_flags=
vararg_flags="-Xclang -morello-vararg=new"
else
elif [ "$CHERIBSD_VERSION" -le 20230804 ]; then
tls_flags=
vararg_flags="-Xclang -morello-vararg=new -Xclang -morello-bounded-memargs=caller-only"
else
tls_flags=
vararg_flags="-Xclang -morello-vararg=new -Xclang -morello-bounded-memargs"
fi

arch_cflags="-march=morello -mabi=purecap $tls_flags $vararg_flags"
Expand Down

0 comments on commit 1bd26bf

Please sign in to comment.