X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Farchive.cpp;h=a018dc9235c4421351003565cb4e6a2c1c438af9;hb=0f5283a54fd188072eca23fbd980a43c6c869913;hp=a7b86c7cc4b945769fc82f404ea0f8de61ee799a;hpb=329dc80e392faf7354338621e73dba1880fc767d;p=builder.git diff --git a/source/archive.cpp b/source/archive.cpp index a7b86c7..a018dc9 100644 --- a/source/archive.cpp +++ b/source/archive.cpp @@ -22,7 +22,7 @@ Archive::Archive(Builder &b, const StaticLibrary &lib): const Component &comp=lib.get_component(); std::string tool="AR"; - argv.push_back(builder.get_architecture(comp.get_package().get_arch()).get_tool(tool)); + argv.push_back(builder.get_current_arch().get_tool(tool)); argv.push_back("rc"); argv.push_back(lib.get_name()); @@ -31,9 +31,9 @@ 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(), tool, relative(lpath, comp.get_package().get_source()).str());