X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Farchitecture.h;h=6a17c3e44852aeecfc0e7b6ae9a2fd24e748dabc;hb=4577986fa24ddc41a1b494545a299f0392c87935;hp=a31ad9fc6fd1c979bac3c8b5502282e573e7d1e6;hpb=aa053d637e8259755af7d2e4b510a242f4d29c7b;p=builder.git diff --git a/source/architecture.h b/source/architecture.h index a31ad9f..6a17c3e 100644 --- a/source/architecture.h +++ b/source/architecture.h @@ -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> 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; }