]> git.tdb.fi Git - builder.git/blobdiff - source/analyzer.cpp
Make tools capable of reporting a system-wide path used to locate input files
[builder.git] / source / analyzer.cpp
index 98e71a88f32963648aff12e416231198bb11c8e0..58c2b9035ee82e8589086f1e83aa1a7283e463a9 100644 (file)
@@ -66,7 +66,7 @@ void Analyzer::build_depend_table(Target &tgt, unsigned depth)
                if(const ObjectFile *obj = dynamic_cast<const ObjectFile *>(&tgt))
                        return build_depend_table(obj->get_source(), depth);
        }
-       else if(mode==REBUILD && !tgt.needs_rebuild() && !real->needs_rebuild())
+       else if(mode==REBUILD && !tgt.needs_rebuild())
                /* All targets that depend on to-be-built targets will be rebuilt
                themselves, so we can stop here. */
                return;
@@ -95,12 +95,7 @@ void Analyzer::build_depend_table(Target &tgt, unsigned depth)
                row.push_back("");
 
        if(tgt.needs_rebuild())
-       {
-               if(tgt.get_rebuild_reason().empty())
-                       row.push_back("Yes (no reason)");
-               else
-                       row.push_back(tgt.get_rebuild_reason());
-       }
+               row.push_back(tgt.get_rebuild_reason());
 
        table.push_back(row);