X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Farchive.cpp;h=70d63632824b1e8accf6bd5e54c135877c76d1ea;hb=69ad3610053e140cb5108f53e4c46a0583e33559;hp=4dee50899f123ad580b5f3f66997527446442fec;hpb=654de39b62a9a58fd8e1b5a557361d628345788b;p=builder.git diff --git a/source/archive.cpp b/source/archive.cpp index 4dee508..70d6363 100644 --- a/source/archive.cpp +++ b/source/archive.cpp @@ -21,7 +21,8 @@ Archive::Archive(Builder &b, const StaticLibrary &lib): { const Component &comp=lib.get_component(); - argv.push_back(builder.get_tool("AR", comp.get_package().get_arch())); + std::string tool="AR"; + argv.push_back(builder.get_architecture(comp.get_package().get_arch()).get_tool(tool)); argv.push_back("rc"); argv.push_back(lib.get_name()); @@ -30,11 +31,11 @@ Archive::Archive(Builder &b, const StaticLibrary &lib): if(dynamic_cast(*i)) argv.push_back((*i)->get_name()); - Path::Path lpath=lib.get_name(); + Path lpath=lib.get_name(); if(!builder.get_dry_run()) - Path::mkpath(lpath.subpath(0, lpath.size()-1), 0755); + mkpath(lpath.subpath(0, lpath.size()-1), 0755); - announce(comp.get_package().get_name(), "AR ", relative(lpath, comp.get_package().get_source()).str()); + announce(comp.get_package().get_name(), tool, relative(lpath, comp.get_package().get_source()).str()); launch(); }