]> git.tdb.fi Git - builder.git/blobdiff - source/builder.h
Big rewrite for a more tool-centric approach
[builder.git] / source / builder.h
index 44bf878b4efa1e1b24d4793b669a1b08e5b342dc..25f06457b624da63f1a011f0d570c6badba03a82 100644 (file)
@@ -12,6 +12,7 @@
 #include "misc.h"
 #include "problem.h"
 #include "target.h"
+#include "toolchain.h"
 
 class Analyzer;
 class Config;
@@ -80,6 +81,7 @@ private:
        Architecture *current_arch;
        StringMap cross_prefixes;
        ProfileTemplateMap profile_tmpl;
+       Toolchain toolchain;
 
        ProblemList problems;
        Analyzer *analyzer;
@@ -146,6 +148,8 @@ public:
        const StringList &get_warnings() const { return warnings; }
        void apply_profile_template(Config &, const std::string &) const;
 
+       const Toolchain &get_toolchain() const { return toolchain; }
+
        /** Adds a target to both the target map and the new target queue.  Called
        from Target constructor. */
        void add_target(Target *);