]> git.tdb.fi Git - builder.git/blobdiff - source/objectfile.cpp
Give targets the ability to gather their own build info
[builder.git] / source / objectfile.cpp
index 27883bb41245cf5ef66dac8cf2b6bcef1aa69113..732fe142400f72159f2f800407c16d6287fce10d 100644 (file)
@@ -37,6 +37,12 @@ FS::Path ObjectFile::generate_target_path(const Component &comp, const FS::Path
        return temp_dir/(FS::basepart(fn)+".o");
 }
 
+void ObjectFile::collect_build_info(BuildInfo &binfo) const
+{
+       Target::collect_build_info(binfo);
+       binfo.update_from(component->get_build_info_for_path(source.get_path()));
+}
+
 void ObjectFile::find_dependencies()
 {
        for(Dependencies::iterator i=depends.begin(); i!=depends.end(); ++i)