X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Farchitecture.h;h=af586192f9ef44b4dafa9103c68ca2b797000e43;hb=3585dea6eabf5f1565886bf09c2bdb2eee978912;hp=a205e5389998b854a6401dc83302095c2927a9b2;hpb=3772879ebdf452eeb9e8e2c04c07338c4933a3ed;p=builder.git diff --git a/source/architecture.h b/source/architecture.h index a205e53..af58619 100644 --- a/source/architecture.h +++ b/source/architecture.h @@ -13,6 +13,7 @@ Distributed under the LGPL class Builder; +// XXX Add lib/exe prefix/suffix fields. Some archs may need multiple alternatives, how to handle this? class Architecture { public: @@ -27,14 +28,16 @@ public: void tool(const std::string &t, const std::string &p); }; - Architecture(Builder &b, const std::string &n); + Architecture(Builder &b, const std::string &n, bool a=false); void set_tool(const std::string &t, const std::string &p); std::string get_tool(const std::string &t) const; const std::string &get_name() const { return name; } + bool is_native() const { return native; } const std::string &get_prefix() const { return prefix; } private: Builder &builder; std::string name; + bool native; std::string prefix; StringMap tools; };