]> git.tdb.fi Git - builder.git/blobdiff - source/architecture.h
Allow architecture specifications to be refined after creation
[builder.git] / source / architecture.h
index a31ad9fc6fd1c979bac3c8b5502282e573e7d1e6..6a17c3e44852aeecfc0e7b6ae9a2fd24e748dabc 100644 (file)
@@ -27,16 +27,21 @@ private:
        std::string cpu;
        std::string fpu;
        std::string system;
-       unsigned bits;
+       unsigned bits = 0;
        std::string toolchain;
        std::string name;
-       bool native;
+       bool native = false;
        std::string cross_prefix;
        std::map<std::string, std::vector<Pattern>> filename_patterns;
 
 public:
        Architecture(Builder &b, const std::string &spec);
 
+       void refine(const std::string &);
+private:
+       void update();
+
+public:
        const std::string &get_type() const { return type; }
        const std::string &get_name() const { return name; }
        const std::string &get_system() const { return system; }