From 8dd79b7b5a0309f9bc1185019a4af16b3b52aece Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Sat, 5 Aug 2006 00:04:34 +0000 Subject: 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. --- src/filetarget.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/filetarget.cpp') 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 ) for( std::list::iterator j = lReqs->begin(); j != lReqs->end(); j++ ) { - if( getTime( bld, *j ) > target ) + time_t srcfile = getTime( bld, *j ); + if( srcfile > target ) { bld.view().beginExecute(); (*i)->execute( bld ); @@ -113,7 +114,7 @@ void FileTarget::check( Builder &bld ) if( k == lReqs->end() ) { bExtraReqs = true; - bld.genRequiresFor( (*i)->getTarget() ); + bld.genRequiresFor( (*i)->getTarget(), srcfile ); } } } -- cgit v1.2.3