From: Mikko Rasa Date: Wed, 9 May 2012 16:27:46 +0000 (+0300) Subject: Use tool tag to detect C++ files rather than a specific tool class X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=f43af45e011a432c5e43611dac4ebd5ca1fe1726;p=builder.git Use tool tag to detect C++ files rather than a specific tool class --- diff --git a/source/gnulinker.cpp b/source/gnulinker.cpp index ad9de77..3693e2b 100644 --- a/source/gnulinker.cpp +++ b/source/gnulinker.cpp @@ -58,7 +58,7 @@ Task *GnuLinker::run(const Target &target) const if(ObjectFile *obj = dynamic_cast(*i)) { const Tool *tool = obj->get_tool(); - if(dynamic_cast(tool)) + if(tool->get_tag()=="CXX") command = "g++"; }