freebsd-src/lib/clang
Dimitry Andric ab80f0b21f Ensure .inc files are regenerated when llvm/clang tblgen binaries change
When doing a fully incremental build (with WITHOUT_CLEAN enabled), from
a commit before llvm 15 was merged (3264f6b88f), to a commit after
that, a number of .inc files were not regenerated. This could lead to
unexpected compilation errors when these .inc files were included from
llvm-project sources, similar to:

  In file included from /usr/src/contrib/llvm-project/clang/lib/CodeGen/CGBuiltin.cpp:8268:
  /usr/obj/usr/src/amd64.amd64/lib/clang/libclang/clang/Basic/arm_mve_builtin_cg.inc:279:18: error: no matching constructor for initialization of 'clang::CodeGen::Address'
    Address Val2 = Address(Val1, CharUnits::fromQuantity(2));
                   ^       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Work around this by making the .inc files dependent on the tblgen binary
used for generating them. E.g., we can relatively safely assume that if
the binary gets updated, the .inc files must also be updated. (Although
this is not 100% optimal, the gain by complicating things even more is
probaby not worth the effort.)

MFC after:	3 days
Reviewed by:	emaste
Differential Revision: https://reviews.freebsd.org/D38770
2023-02-26 15:56:07 +01:00
..
headers Ensure .inc files are regenerated when llvm/clang tblgen binaries change 2023-02-26 15:56:07 +01:00
include Merge llvm-project release/15.x llvmorg-15.0.7-0-g8dfdcc7b7bf6 2023-02-08 20:05:25 +01:00
libclang Ensure .inc files are regenerated when llvm/clang tblgen binaries change 2023-02-26 15:56:07 +01:00
libclangminimal Merge llvm-project main llvmorg-15-init-15358-g53dc0f10787 2023-02-08 20:02:26 +01:00
liblldb Ensure .inc files are regenerated when llvm/clang tblgen binaries change 2023-02-26 15:56:07 +01:00
libllvm Ensure .inc files are regenerated when llvm/clang tblgen binaries change 2023-02-26 15:56:07 +01:00
libllvmminimal Merge llvm-project main llvmorg-14-init-17616-g024a1fab5c35 2022-05-14 13:44:34 +02:00
clang.build.mk clang: Build with -fno-strict-aliasing when using GCC 2021-08-24 15:04:25 +01:00
clang.pre.mk Ensure .inc files are regenerated when llvm/clang tblgen binaries change 2023-02-26 15:56:07 +01:00
freebsd_cc_version.h Merge llvm-project main llvmorg-15-init-15358-g53dc0f10787 2023-02-08 20:02:26 +01:00
lldb.pre.mk Move all sources from the llvm project into contrib/llvm-project. 2019-12-20 19:53:05 +00:00
llvm.build.mk Revert "Avoid using TARGET_ARCH in llvm.build.mk" 2022-10-13 22:04:47 -05:00
llvm.pre.mk Ensure .inc files are regenerated when llvm/clang tblgen binaries change 2023-02-26 15:56:07 +01:00
Makefile Build libclang also if LLDB is enabled 2022-01-07 15:23:55 -05:00
Makefile.inc build: provide a default WARNS for all in-tree builds 2020-09-18 17:17:46 +00:00