[Scons-users] Caching results of custom configure tests
Pawel Tomulik
ptomulik at meil.pw.edu.pl
Fri Mar 14 07:34:05 EDT 2014
W dniu 11.03.2014 13:12, Pawel Tomulik pisze:
> This question has actually been posed in 2008 but it seems like it's
> still unanswered.
>
> The question is about caching the results of custom SConf tests
> (http://scons.org/doc/production/HTML/scons-user.html#chap-sconf). Is it
> possible? It seems like currently caching works out of the box for
> standard checks but it doesn't for custom ones.
>
> Any suggestions?
>
>
So let me answer myself :)
One possibility is to set context.sconf.cached = 1 and use
context.TryAction() with appropriate action. The action should generate
a target file (usually named 'conftest_N', where N is 0,1, etc..).
--
Paweł Tomulik
More information about the Scons-users
mailing list