aboutsummaryrefslogtreecommitdiff
path: root/src/filetarget.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-08-05 00:04:34 +0000
committerMike Buland <eichlan@xagasoft.com>2006-08-05 00:04:34 +0000
commit8dd79b7b5a0309f9bc1185019a4af16b3b52aece (patch)
treea703325cb9bc074179aeaf38f4851a4c38ebfd87 /src/filetarget.cpp
parent13bda5d4f77ca469bbbe0d9b1f268682a9f0ec71 (diff)
downloadbuild-8dd79b7b5a0309f9bc1185019a4af16b3b52aece.tar.gz
build-8dd79b7b5a0309f9bc1185019a4af16b3b52aece.tar.bz2
build-8dd79b7b5a0309f9bc1185019a4af16b3b52aece.tar.xz
build-8dd79b7b5a0309f9bc1185019a4af16b3b52aece.zip
Build now uses a cachefile for all of it's requires that are generated from
other means (running other programs). It's really fast, and seems to work pretty well.
Diffstat (limited to 'src/filetarget.cpp')
-rw-r--r--src/filetarget.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/filetarget.cpp b/src/filetarget.cpp
index e89cd5f..7a714a5 100644
--- a/src/filetarget.cpp
+++ b/src/filetarget.cpp
@@ -98,7 +98,8 @@ void FileTarget::check( Builder &bld )
98 for( std::list<std::string>::iterator j = lReqs->begin(); 98 for( std::list<std::string>::iterator j = lReqs->begin();
99 j != lReqs->end(); j++ ) 99 j != lReqs->end(); j++ )
100 { 100 {
101 if( getTime( bld, *j ) > target ) 101 time_t srcfile = getTime( bld, *j );
102 if( srcfile > target )
102 { 103 {
103 bld.view().beginExecute(); 104 bld.view().beginExecute();
104 (*i)->execute( bld ); 105 (*i)->execute( bld );
@@ -113,7 +114,7 @@ void FileTarget::check( Builder &bld )
113 if( k == lReqs->end() ) 114 if( k == lReqs->end() )
114 { 115 {
115 bExtraReqs = true; 116 bExtraReqs = true;
116 bld.genRequiresFor( (*i)->getTarget() ); 117 bld.genRequiresFor( (*i)->getTarget(), srcfile );
117 } 118 }
118 } 119 }
119 } 120 }