From: Rusty Russell Date: Mon, 10 Sep 2012 05:03:01 +0000 (+0930) Subject: tools: more intelligent caching for compile _info. X-Git-Url: http://git.ozlabs.org/?a=commitdiff_plain;ds=sidebyside;h=e2a53df3e1f5912c872f1906912053354d0d0c63;hp=e2a53df3e1f5912c872f1906912053354d0d0c63;p=ccan tools: more intelligent caching for compile _info. We let the get_deps() caller hand us the compiled _info filename, but what about recursive dependencies? These we re-generate every time. So fix this: hand a generator callback to get_deps(), expose the one which simply compiles it, and add a ccanlint one which looks up the manifest to see if we have one already. Before: $ ccanlint -vvvv ccan/failtest | grep -c 'Creating.*_info' 31 After: $ ccanlint -vvvv ccan/failtest | grep -c 'Creating.*_info' 17 ---