#include <msp/path/utils.h>
+#include "builder.h"
#include "component.h"
#include "executable.h"
#include "link.h"
+#include "objectfile.h"
#include "package.h"
using namespace std;
argv.push_back(exe.get_name());
const list<Target *> &deps=exe.get_depends();
for(list<Target *>::const_iterator i=deps.begin(); i!=deps.end(); ++i)
- argv.push_back((*i)->get_name());
+ if(dynamic_cast<ObjectFile *>(*i))
+ argv.push_back((*i)->get_name());
Path::Path epath=exe.get_name();
- Path::mkpath(epath.subpath(0, epath.size()-1), 0755);
+ if(!builder.get_dry_run())
+ Path::mkpath(epath.subpath(0, epath.size()-1), 0755);
announce(comp.get_package().get_name(), "LINK", relative(epath, comp.get_package().get_source()).str());