From f43af45e011a432c5e43611dac4ebd5ca1fe1726 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 9 May 2012 19:27:46 +0300 Subject: [PATCH] Use tool tag to detect C++ files rather than a specific tool class --- source/gnulinker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++"; } -- 2.45.2