X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flib%2Ftool.h;h=5921c2ddb2eb44e545711878d5c0401ded919343;hb=6ce67e1469bf62156ddf64e33644851f9064c6ed;hp=b756563242ba4099152f0ce125bd93a6504d9ffb;hpb=c8e829c219c65ff8e93b6c7b66212ff0876441c5;p=builder.git diff --git a/source/lib/tool.h b/source/lib/tool.h index b756563..5921c2d 100644 --- a/source/lib/tool.h +++ b/source/lib/tool.h @@ -8,6 +8,7 @@ #include "buildinfo.h" #include "externaltask.h" #include "internaltask.h" +#include "libbuilder_api.h" #include "sourcepackage.h" #include "target.h" #include "virtualfilesystem.h" @@ -31,7 +32,7 @@ public: Base class for tools. Tools are used to turn targets into other targets. Examples include compilers and linkers. */ -class Tool: protected ToolData +class LIBBUILDER_API Tool: protected ToolData { public: enum ProcessingUnit @@ -142,6 +143,7 @@ protected: virtual void do_prepare(ToolData &) const { } public: + bool is_broken() const { return !problems.empty(); } const std::vector &get_problems() const { return problems; } /** Invokes the tool to build a target. This should not be called directly;