]> git.tdb.fi Git - builder.git/blobdiff - source/architecture.h
Refactor arch handling a bit
[builder.git] / source / architecture.h
index a205e5389998b854a6401dc83302095c2927a9b2..af586192f9ef44b4dafa9103c68ca2b797000e43 100644 (file)
@@ -13,6 +13,7 @@ Distributed under the LGPL
 
 class Builder;
 
+// XXX Add lib/exe prefix/suffix fields.  Some archs may need multiple alternatives, how to handle this?
 class Architecture
 {
 public:
@@ -27,14 +28,16 @@ public:
                void tool(const std::string &t, const std::string &p);
        };
 
-       Architecture(Builder &b, const std::string &n);
+       Architecture(Builder &b, const std::string &n, bool a=false);
        void set_tool(const std::string &t, const std::string &p);
        std::string get_tool(const std::string &t) const;
        const std::string &get_name() const { return name; }
+       bool is_native() const { return native; }
        const std::string &get_prefix() const { return prefix; }
 private:
        Builder     &builder;
        std::string name;
+       bool        native;
        std::string prefix;
        StringMap   tools;
 };