On 16/11/2010, at 2:44 AM, Erick Tryzelaar wrote: > On Sat, Nov 13, 2010 at 9:50 PM, john skaller > <skal...@users.sourceforge.net> wrote: >> >> Unfortunately there is no way around this problem short of >> special hacks in the build system. Could be done, by >> only copying the version information when the rest of the >> compiler contains a change and would have to be rebuilt anyhow. > > You know, I think it'd be worthwhile to pull the build time out of the > version. Not only would we be able to then dump the flx_version_hook > file, but then it'd also make our libraries and executables consistent > over rebuilds so that they can be hashable. I know of at least one > packaging system (http://nixos.org) that relies on that property.
Yes, but then when I run Felix it will segfault if a cached *.par file is wrong, instead of reparsing. However I am thinking of putting the parse time in the *.par file, and that would suffice I think. The problem is that *I* don't bump the version numbers often enough to rely just on the version number, I don't do it after every singe change. I should really bump it after every compiler mod. Actually I'm going to change "flxg" and "flx" so the time stamp of "flxg" is a dependency of everything (if the compiler is changed rebuild all the libraries!). The main problem is to portably find the file "flxg" from inside "flxg" (flx know where it is, flxg doesn't know where itself lives, and the $0 trick isn't reliable AFAIK ..:) -- john skaller skal...@users.sourceforge.net ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Felix-language mailing list Felix-language@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/felix-language