]> git.tdb.fi Git - builder.git/blobdiff - source/target.h
Remove the buildable flag and instead check for tool being non-null
[builder.git] / source / target.h
index 891d75752396471978048d65cb7ffefc2f49cecf..2df56a4a49b9403fb5b5df87a43b6da1c0cf5d39 100644 (file)
@@ -29,7 +29,6 @@ protected:
        std::string name;
 
        const Tool *tool;
-       bool buildable;
        bool building;
        bool rebuild;
        std::string rebuild_reason;
@@ -67,7 +66,7 @@ public:
        void set_tool(const Tool &);
        const Tool *get_tool() const { return tool; }
 
-       bool is_buildable() const { return buildable; }
+       bool is_buildable() const { return tool!=0; }
        bool get_rebuild() const { return rebuild; }
        const std::string &get_rebuild_reason() const { return rebuild_reason; }
        bool is_installable() const { return !install_location.empty(); }