]> git.tdb.fi Git - builder.git/blobdiff - source/archive.cpp
Add Id tag to all files
[builder.git] / source / archive.cpp
index daff2339d56a1ac0d3798c5b10fdfa604e654283..b6c9582b5e62502b0e735c24b058c9a474528953 100644 (file)
@@ -1,3 +1,10 @@
+/* $Id$
+
+This file is part of builder
+Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
+
 #include <msp/path/utils.h>
 #include "archive.h"
 #include "builder.h"
@@ -14,12 +21,12 @@ Archive::Archive(Builder &b, const StaticLibrary &lib):
 {
        const Component &comp=lib.get_component();
 
-       argv.push_back("ar");
+       argv.push_back(builder.get_tool("AR", lib.get_package()->get_arch()));
        argv.push_back("rc");
 
        argv.push_back(lib.get_name());
-       const list<Target *> &deps=lib.get_depends();
-       for(list<Target *>::const_iterator i=deps.begin(); i!=deps.end(); ++i)
+       const TargetList &deps=lib.get_depends();
+       for(TargetList::const_iterator i=deps.begin(); i!=deps.end(); ++i)
                if(dynamic_cast<ObjectFile *>(*i))
                        argv.push_back((*i)->get_name());