X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcompile.cpp;h=d823c30a5ace4d90aab67ec050e9fa8cc1e2379f;hb=63adab21a6f229f434b41eb59c5718fdc3c37b15;hp=15aaee9e800477f30ebf475ca96ff4ce64928ff9;hpb=59ac0a44d6edf179c01604c6ced744873213f855;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());