diff options
author | Mike Buland <eichlan@xagasoft.com> | 2006-08-05 06:52:01 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2006-08-05 06:52:01 +0000 |
commit | 2c0c23b75f563d0a1e68f6079a8eea73c40a877a (patch) | |
tree | 5371a7fbf46bb21bd283f9162358ed9146912259 /src/filetarget.cpp | |
parent | 8dd79b7b5a0309f9bc1185019a4af16b3b52aece (diff) | |
download | build-2c0c23b75f563d0a1e68f6079a8eea73c40a877a.tar.gz build-2c0c23b75f563d0a1e68f6079a8eea73c40a877a.tar.bz2 build-2c0c23b75f563d0a1e68f6079a8eea73c40a877a.tar.xz build-2c0c23b75f563d0a1e68f6079a8eea73c40a877a.zip |
Tweaked the cache format, it's no longer compatable with the old version, but it
is less than one tenth the size, without using anything as slow as a compresion
system, I just store each string only once (it's sort of compression).
I also updated the plain viewer to not be so annoying if it doesn't have
anything to do.
Diffstat (limited to '')
-rw-r--r-- | src/filetarget.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/filetarget.cpp b/src/filetarget.cpp index 7a714a5..0d47e6f 100644 --- a/src/filetarget.cpp +++ b/src/filetarget.cpp | |||
@@ -95,10 +95,13 @@ void FileTarget::check( Builder &bld ) | |||
95 | printf("No dependancies: %s\n", (*i)->getTarget() ); | 95 | printf("No dependancies: %s\n", (*i)->getTarget() ); |
96 | continue; | 96 | continue; |
97 | } | 97 | } |
98 | time_t rebuild = target; | ||
98 | for( std::list<std::string>::iterator j = lReqs->begin(); | 99 | for( std::list<std::string>::iterator j = lReqs->begin(); |
99 | j != lReqs->end(); j++ ) | 100 | j != lReqs->end(); j++ ) |
100 | { | 101 | { |
101 | time_t srcfile = getTime( bld, *j ); | 102 | time_t srcfile = getTime( bld, *j ); |
103 | if( srcfile < rebuild ) | ||
104 | rebuild = srcfile; | ||
102 | if( srcfile > target ) | 105 | if( srcfile > target ) |
103 | { | 106 | { |
104 | bld.view().beginExecute(); | 107 | bld.view().beginExecute(); |
@@ -114,7 +117,7 @@ void FileTarget::check( Builder &bld ) | |||
114 | if( k == lReqs->end() ) | 117 | if( k == lReqs->end() ) |
115 | { | 118 | { |
116 | bExtraReqs = true; | 119 | bExtraReqs = true; |
117 | bld.genRequiresFor( (*i)->getTarget(), srcfile ); | 120 | bld.genRequiresFor( (*i)->getTarget(), rebuild ); |
118 | } | 121 | } |
119 | } | 122 | } |
120 | } | 123 | } |