On Sat, 3 Oct 2009, Sebastian Moors wrote: >> >> config.h >> version.cpp >> scache.conf > > thanks for making clear where your problem is. Normally scons should > compute the md5 value of those files and compile it only if they differ. > I'm going to look into this tonight after our band rehearsal..
Just a hunch on config.h and version.cpp... does scons calculate MD5's before or after the script rewrites them? And if the timestamp of the files change after the MD5 is calculated... does scons take the conservative approach and consider them changed? The scons documentation bites (at least, it did the last 20 times I checked)... so the only way I know is to dig into the source or do trial/error experiments. (I.e. it's a mystery to me!) In the past, I've also experimented with writing these to a buffer or temp file. Then, I compare for changes. If nothing has changed, I delete the buffer/temp file. If there's a change, I overwrite the files with the buffer/temp file. I can't remember if it even worked... but I remember that I scrapped the idea. > scache.conf is written on every change of the scons environment. For > example: Compiling with other default options etc. > This makes shure that scons remembers your values. It's worth mentioning that scache.conf is a feature of scons, and not something that the H2 devs invented. Also, at least on my system, it appears to be stable. I.e. it only changes when it's supposed to... and it only triggers rebuilds when it's supposed to. (If it changes, then H2 *should* have a full rebuild. Also, by observation, it only stores config. variables that are *different* from the defaults.) So, if rebuilds are being triggered by scache.conf... it's not a problem with H2's Sconstruct file... it's a problem with how you're using scons. Peace, Gabriel ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Hydrogen-devel mailing list Hydrogen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hydrogen-devel