X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgnucxxcompiler.cpp;h=3e0a4b87fae698ca248c345db05360c9bb306e07;hb=47496103adfdfe45cdc162a4f6341e924211302d;hp=0601fc29c5f596fbf1a99d1956450ad13ca10abd;hpb=4facd021514ab372c23b1b132d6b4b62baa4efbf;p=builder.git diff --git a/source/gnucxxcompiler.cpp b/source/gnucxxcompiler.cpp index 0601fc2..3e0a4b8 100644 --- a/source/gnucxxcompiler.cpp +++ b/source/gnucxxcompiler.cpp @@ -34,8 +34,7 @@ GnuCxxCompiler::GnuCxxCompiler(Builder &b): FS::Path cxx_path = FS::Path("/usr/include/c++")/cxx_ver; if(FS::is_dir(cxx_path)) { - if(builder.get_verbose()>=5) - IO::print("%s version is %s\n", name, cxx_ver); + builder.get_logger().log("tools", format("%s version is %s", name, cxx_ver)); system_path.push_back(cxx_path); break; } @@ -52,3 +51,8 @@ Target *GnuCxxCompiler::create_source(const Component &comp, const FS::Path &pat { return new CSourceFile(builder, comp, path); } + +Target *GnuCxxCompiler::create_source(const FS::Path &path) const +{ + return new CSourceFile(builder, path); +}