X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftool.cpp;h=eaf4977d8c16030f2aa1bb0994ad3abc1d67c900;hb=4e220a1ec5800e2f1caba02d55977a3b6f68d112;hp=82349e18eea50b747d8870ffb3f3113980dc7216;hpb=c5942a5c2fe7677a77b88254ee874bc09a5aa725;p=builder.git diff --git a/source/tool.cpp b/source/tool.cpp index 82349e1..eaf4977 100644 --- a/source/tool.cpp +++ b/source/tool.cpp @@ -59,6 +59,9 @@ void Tool::prepare(Tool &tool) const if(&tool!=this && tool.get_base_tool()!=this) throw invalid_argument("Tool::prepare"); + if(&tool!=this && !command.empty() && tool.command.empty()) + throw logic_error("Derived tool has no command"); + do_prepare(tool); }