]> git.tdb.fi Git - builder.git/blobdiff - source/tool.h
Add a utility function for setting the executable for a Tool
[builder.git] / source / tool.h
index 73be90d30a34a92f18235d9f9ece3d29f623318d..93e2196189ca1f110f3a7d5774f4523420f03a28 100644 (file)
@@ -85,6 +85,11 @@ public:
 protected:
        virtual void do_prepare() { }
 
+       /** Locates an executable for the tool from the VFS.  If it isn't found, a
+       problem is reported.  If cross is true and the architecture is not native,
+       a cross prefix is added to the command. */
+       void set_executable(const std::string &command, bool cross = false);
+
 public:
        /** Invokes the tool to build a target.  This should not be called directly;
        use Target::build() instead. */