]> git.tdb.fi Git - builder.git/commitdiff
Use tool tag to detect C++ files rather than a specific tool class
authorMikko Rasa <tdb@tdb.fi>
Wed, 9 May 2012 16:27:46 +0000 (19:27 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 8 Jul 2012 21:08:51 +0000 (00:08 +0300)
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++";
                }