X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftarget.cpp;h=1aab4b1fdef5a2f16fc04d4a674a0b5efb043a71;hb=ca18323d45d67243773b03668e79c715aa976441;hp=88d8b70e2c1cce48cb545c6c8e1a52708700c10c;hpb=525c055f83e9fd748ff878462ed84b0897b46e75;p=builder.git diff --git a/source/target.cpp b/source/target.cpp index 88d8b70..1aab4b1 100644 --- a/source/target.cpp +++ b/source/target.cpp @@ -47,6 +47,13 @@ void Target::set_tool(const Tool &t) tool = &t; } +void Target::force_rebuild() +{ + if(!is_buildable()) + throw logic_error("Target::force_rebuild"); + mark_rebuild("Forced rebuild"); +} + void Target::add_depend(Target *dep) { if(dep==this)