]> git.tdb.fi Git - builder.git/blobdiff - source/architecture.h
Add FPU specification to Architecture and GnuCompiler
[builder.git] / source / architecture.h
index 4db809f19f3cbf0ef33e6706b8cc1bedae5f0619..153230244f6aedfdce7fd6a5648619108fe93d12 100644 (file)
@@ -26,6 +26,7 @@ private:
        Builder &builder;
        std::string type;
        std::string cpu;
+       std::string fpu;
        std::string system;
        unsigned bits;
        std::string name;
@@ -38,11 +39,14 @@ private:
 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(); }
 
@@ -53,7 +57,7 @@ public:
        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 &);
 };