]> git.tdb.fi Git - builder.git/blobdiff - source/gnulinker.cpp
Add a method to query the existence of dependencies in cache
[builder.git] / source / gnulinker.cpp
index ad9de775f3acecf3534cf61b37b6b630fc2574ab..3693e2b0cc08386c6d9cb3bceecee05aa1d72455 100644 (file)
@@ -58,7 +58,7 @@ Task *GnuLinker::run(const Target &target) const
                if(ObjectFile *obj = dynamic_cast<ObjectFile *>(*i))
                {
                        const Tool *tool = obj->get_tool();
-                       if(dynamic_cast<const GnuCxxCompiler *>(tool))
+                       if(tool->get_tag()=="CXX")
                                command = "g++";
                }