From 8b2e7da70855e48c0ba8c874fa528b599fb7c9a9 Mon Sep 17 00:00:00 2001 From: Brooks Davis Date: Wed, 23 Oct 2024 23:37:28 +0100 Subject: [PATCH] llvm19: permit incremental builds from llvm18 Detect and delete out of date clang-tblgen produced output. I found it sufficent for compilation to delete only arm_*.inc files, but it seems safer to regenerate all output and a few extra clang-tblgen runs pales in comparison to the full build we're doing at this point. Reviewed by: dim, emaste Differential Revision: https://reviews.freebsd.org/D47270 --- tools/build/depend-cleanup.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/build/depend-cleanup.sh b/tools/build/depend-cleanup.sh index 001a450bf18..3678e3368b3 100755 --- a/tools/build/depend-cleanup.sh +++ b/tools/build/depend-cleanup.sh @@ -215,3 +215,13 @@ if [ ${MACHINE} = riscv ]; then fi done fi + +# 20241018 5deeebd8c6ca Merge llvm-project release/19.x llvmorg-19.1.2-0-g7ba7d8e2f7b6 +p="$OBJTOP"/lib/clang/libclang/clang/Basic +f="$p"/arm_mve_builtin_sema.inc +if [ -e "$f" ]; then + if grep -q SemaBuiltinConstantArgRange "$f"; then + echo "Removing pre-llvm19 clang-tblgen output" + run rm -f "$p"/*.inc + fi +fi