toolchain = "gnu";
}
+ update();
+}
+
+void Architecture::refine(const string &spec)
+{
+ parse_specification(spec);
+ update();
+}
+
+void Architecture::update()
+{
name = type;
if(!cpu.empty())
name += format("-%s", cpu);
name += format("-%s", fpu);
name += format("-%d-%s-%s", bits, system, toolchain);
+ filename_patterns.clear();
if(system=="windows")
{
add_pattern<SharedLibrary>("%.dll");
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; }