]> git.tdb.fi Git - builder.git/blobdiff - source/gnucompiler.cpp
Give targets the ability to gather their own build info
[builder.git] / source / gnucompiler.cpp
index 9fcdaf048cd50c23e0eb85e924dfa75d013ae87a..16e24c0090c5bf43a45cd3d69a0559ddcb56acd9 100644 (file)
@@ -81,7 +81,9 @@ Task *GnuCompiler::run(const Target &target) const
        argv.push_back(executable->get_path().str());
        argv.push_back("-c");
 
-       const BuildInfo &binfo = comp.get_build_info_for_path(object.get_source().get_path());
+       BuildInfo binfo;
+       target.collect_build_info(binfo);
+
        if(binfo.warning_level>=1)
        {
                argv.push_back("-Wall");