X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftool.h;h=36d1be165b4f614a994d99ca08bcda4b37674ecd;hb=19a821ee581f0fe60860627472cc59065247bf13;hp=d1d71030c5fcc7ec35844333b2e79ad2bacf4069;hpb=243d7c7355c1c5d9a0134440f340936325caaf88;p=builder.git diff --git a/source/tool.h b/source/tool.h index d1d7103..36d1be1 100644 --- a/source/tool.h +++ b/source/tool.h @@ -44,4 +44,17 @@ public: virtual Task *run(const Target &) const = 0; }; +/** +Intermediate base class for tool facets. For example, a linker may need to +use different commands depending on whether C++ source files are present or +not, but their presence can't be directly determined from the object files. +*/ +class SubTool: public Tool +{ +protected: + Tool &parent; + + SubTool(Tool &); +}; + #endif