]> git.tdb.fi Git - builder.git/commitdiff
Add a method to determine whether an architecture requires cross-compilation
authorMikko Rasa <tdb@tdb.fi>
Sun, 8 Jul 2012 21:01:37 +0000 (00:01 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 8 Jul 2012 21:08:55 +0000 (00:08 +0300)
source/architecture.h

index c07297a8940153fa7551e6a62c1c956c66852f33..5446c04235f3f0465fe64c93f62fc31ce6fdfc4e 100644 (file)
@@ -45,6 +45,7 @@ public:
        const std::string &get_cpu() const { return cpu; }
        bool match_name(const std::string &) const;
        bool is_native() const { return native; }
+       bool is_cross() const { return !cross_prefix.empty(); }
 
        void set_cross_prefix(const std::string &);
        const std::string &get_cross_prefix() const { return cross_prefix; }