From: Mikko Rasa Date: Sun, 8 Jul 2012 21:01:37 +0000 (+0300) Subject: Add a method to determine whether an architecture requires cross-compilation X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=003f12c8e9b3ae8bc00658a8763ebd593ac8c390;p=builder.git Add a method to determine whether an architecture requires cross-compilation --- diff --git a/source/architecture.h b/source/architecture.h index c07297a..5446c04 100644 --- a/source/architecture.h +++ b/source/architecture.h @@ -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; }