X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgnucxxcompiler.cpp;fp=source%2Fgnucxxcompiler.cpp;h=9045b6c3a369029a48efb39f386ce91a3f4dc978;hb=4fea1031bf55f4f4d7f17f529a89aa5945018446;hp=cadd21f026989df463412668a672b182d188bf5c;hpb=f75a99316e896cf1e424a489ce360a67844d86b0;p=builder.git diff --git a/source/gnucxxcompiler.cpp b/source/gnucxxcompiler.cpp index cadd21f..9045b6c 100644 --- a/source/gnucxxcompiler.cpp +++ b/source/gnucxxcompiler.cpp @@ -1,4 +1,5 @@ #include +#include #include #include #include @@ -18,7 +19,7 @@ GnuCxxCompiler::GnuCxxCompiler(Builder &b): aux_suffixes.push_back(".hpp"); ExternalTask::Arguments argv; - argv.push_back(name); + argv.push_back(executable->get_path().str()); argv.push_back("--version"); builder.get_logger().log("auxcommands", format("Running %s", join(argv.begin(), argv.end()))); ExternalTask task(argv); @@ -36,7 +37,7 @@ GnuCxxCompiler::GnuCxxCompiler(Builder &b): FS::Path cxx_path = FS::Path("/usr/include/c++")/cxx_ver; if(FS::is_dir(cxx_path)) { - builder.get_logger().log("tools", format("%s version is %s", name, cxx_ver)); + builder.get_logger().log("tools", format("%s version is %s", FS::basename(executable->get_path()), cxx_ver)); system_path.push_back(cxx_path); break; }