]> git.tdb.fi Git - builder.git/blobdiff - source/compile.cpp
Move class PackageRef to its own files
[builder.git] / source / compile.cpp
index 15aaee9e800477f30ebf475ca96ff4ce64928ff9..d823c30a5ace4d90aab67ec050e9fa8cc1e2379f 100644 (file)
@@ -1,4 +1,5 @@
 #include <msp/path/utils.h>
+#include "builder.h"
 #include "buildinfo.h"
 #include "compile.h"
 #include "component.h"
@@ -39,7 +40,8 @@ Compile::Compile(Builder &b, const Path::Path &s, const Path::Path &o, const Com
        argv.push_back(object.str());
        argv.push_back(source.str());
 
-       Path::mkpath(object.subpath(0, object.size()-1), 0755);
+       if(!builder.get_dry_run())
+               Path::mkpath(object.subpath(0, object.size()-1), 0755);
 
        announce(comp.get_package().get_name(), tool, relative(object.str(), comp.get_package().get_source()).str());