]> git.tdb.fi Git - builder.git/blobdiff - source/target.h
Delay locating tool executables until the tool is needed
[builder.git] / source / target.h
index 0b9d2306fde33f6b35209c5d94dcf08d3af2101b..eda77d00dcd126b1c587768f04af4b8e7b162b2b 100644 (file)
@@ -42,7 +42,7 @@ protected:
        const Component *component;
        std::string name;
 
-       const Tool *tool;
+       Tool *tool;
        State state;
        std::string rebuild_reason;
 
@@ -95,7 +95,7 @@ public:
        the function recursively to find the final target. */
        virtual Target *get_real_target() { return this; }
 
-       void set_tool(const Tool &);
+       void set_tool(Tool &);
 
        /** Returns the tool used to build the target.  To actually build it, call
        the build() function. */