[llvm-commits] [PATCH] Teach CMake to only touch tablegen-generated files if anything actually changed.

Frits van Bommel fvbommel at gmail.com
Fri Oct 22 06:29:56 PDT 2010


I noticed the CMake build doesn't leave tablegen-generated files
untouched if they are regenerated with the same contents[1]. The
attached patch should fix that.
This can save a lot of compilation if e.g. libLLVMSystem.a changed,
causing the tblgen executable to be relinked without changing anything
in the generated code. Especially clang seems heavily affected,
probably due to the diagnostics tables.


[1]: The configure && make build already does this.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmake-tablegen-copy_if_different.patch
Type: text/x-patch
Size: 1220 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20101022/3039182c/attachment.bin>


More information about the llvm-commits mailing list