Report why a file is marked for rebuild

svn path=/branches/xmlbuildsystem/; revision=14070
This commit is contained in:
Casper Hornstrup 2005-03-14 19:42:00 +00:00
parent 944769bcd5
commit d12b2619f0

View file

@ -406,8 +406,9 @@ AutomaticDependency::CheckAutomaticDependencies ()
assert ( sourceFile->youngestLastWriteTime != 0 );
if ( sourceFile->youngestLastWriteTime > sourceFile->lastWriteTime )
{
printf ( "Marking %s for rebuild\n",
sourceFile->filename.c_str () );
printf ( "Marking %s for rebuild due to younger file %s\n",
sourceFile->filename.c_str (),
sourceFile->youngestFile->filename.c_str () );
timebuf.actime = sourceFile->youngestLastWriteTime;
timebuf.modtime = sourceFile->youngestLastWriteTime;
utime ( sourceFile->filename.c_str (),