X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcompile.cpp;h=d823c30a5ace4d90aab67ec050e9fa8cc1e2379f;hb=f1c967215e6b08095bdf07518472beca3067ec37;hp=15aaee9e800477f30ebf475ca96ff4ce64928ff9;hpb=683301f94f4a3c5b7e2a7f21087f4185b07c4858;p=builder.git diff --git a/source/compile.cpp b/source/compile.cpp index 15aaee9..d823c30 100644 --- a/source/compile.cpp +++ b/source/compile.cpp @@ -1,4 +1,5 @@ #include +#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());