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");