]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r266053:
authordim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 17 May 2014 12:47:11 +0000 (12:47 +0000)
committerdim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 17 May 2014 12:47:11 +0000 (12:47 +0000)
commit83ef7b2ed46eb2953bdb12652d132c3b84a2c1b1
treefb89acf7ced5f6a058d56c388a5df34b2ef63785
parent3501a7c6a027fdd4726fccb7e834071c89cea771
MFC r266053:

Use the new -d option that was added to tblgen between llvm/clang 3.3
and 3.4 to generate dependency files for the '.inc.h' files generated
from .td files, and .sinclude those dependency files in clang.build.mk.

This will make future incremental builds of lib/clang and usr.bin/clang
work correctly, whenever any of the .td files get modified.

Note that this will not fix any problems with incremental builds from
*before* this revision, since there will not yet be any generated
dependency files.  A quick workaround is to run the following:

  find /usr/obj -type f -name '*.inc.h' | xargs rm

and then a regular incremental buildworld (e.g. with -DNO_CLEAN).

git-svn-id: svn://svn.freebsd.org/base/stable/9@266309 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/clang/clang.build.mk