]> git.tdb.fi Git - builder.git/blobdiff - source/tool.h
Refactor FileTarget and SourceFile constructors
[builder.git] / source / tool.h
index 7371103213b91f56483f630da8cada940d3fda66..4bbbcf5595a8f3603e85901fb5bdb88503cba6f2 100644 (file)
@@ -5,6 +5,7 @@
 #include <string>
 #include <msp/fs/path.h>
 
+class Architecture;
 class Builder;
 class Component;
 class FileTarget;
@@ -23,6 +24,7 @@ public:
 
 protected:
        Builder &builder;
+       const Architecture *architecture;
        std::string tag;
        FileTarget *executable;
        SuffixList input_suffixes;
@@ -30,6 +32,7 @@ protected:
        SearchPath system_path;
 
        Tool(Builder &, const std::string &);
+       Tool(Builder &, const Architecture &, const std::string &);
 public:
        virtual ~Tool() { }