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
This commit is contained in:
Brooks Davis 2024-10-23 23:37:28 +01:00
parent c22be0b181
commit 8b2e7da708

View File

@ -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