X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftool.h;h=be3646cd8f0f674a6022980a1205de5aa5c7b6b9;hb=1496723307ed47b60d3116623ba383e85b50efef;hp=042199e54b79342c10e967f7b6de00a6e474554c;hpb=0d95fee118a3fcd78f153dca5721d9fe19b6f6bf;p=builder.git diff --git a/source/tool.h b/source/tool.h index 042199e..be3646c 100644 --- a/source/tool.h +++ b/source/tool.h @@ -41,6 +41,10 @@ public: const std::string &get_tag() const { return tag; } + /** Returns the architecture this tool build for. May return null if the + tool is architecture-agnostic. */ + const Architecture *get_architecture() const { return architecture; } + /** Returns a target for the tool's own executable. If the tool does not use an external program, returns null. */ FileTarget *get_executable() const { return executable; }