]> git.tdb.fi Git - builder.git/blobdiff - source/sourcefile.cpp
Builder can build itself now.
[builder.git] / source / sourcefile.cpp
index 55910a64823742b12f45b259289ebae5270daa6c..42142536607b9a4540929703ae14383538823ea8 100644 (file)
@@ -32,3 +32,9 @@ void SourceFile::find_depends()
                        add_depend(hdr);
        }
 }
+
+void SourceFile::check_rebuild()
+{
+       for(list<Target *>::iterator i=depends.begin(); i!=depends.end(); ++i)
+               vmtime=max(vmtime, (*i)->get_virtual_mtime());
+}