Builder &builder;
std::string type;
std::string cpu;
+ std::string fpu;
std::string system;
unsigned bits;
std::string name;
public:
Architecture(Builder &b, const std::string &spec);
+ const std::string &get_type() const { return type; }
const std::string &get_name() const { return name; }
const std::string &get_system() const { return system; }
unsigned get_bits() const { return bits; }
const std::string &get_cpu() const { return cpu; }
+ const std::string &get_fpu() const { return fpu; }
bool match_name(const std::string &) const;
+ std::string best_match(const std::list<std::string> &) const;
bool is_native() const { return native; }
bool is_cross() const { return !cross_prefix.empty(); }
const PatternList &get_executable_patterns() const { return executable_patterns; }
private:
- std::string resolve_alias(const std::string &) const;
+ static void resolve_aliases(std::vector<std::string> &);
void parse_specification(const std::string &);
};
-typedef std::map<std::string, Architecture> ArchMap;
-
#endif