3 This file is part of builder
4 Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
8 #include "architecture.h"
14 Architecture::Architecture(Builder &b, const string &n):
19 void Architecture::set_tool(const string &t, const string &p)
24 std::string Architecture::get_tool(const string &t) const
26 StringMap::const_iterator i=tools.find(t);
30 return prefix+i->second;
37 const Architecture &native=builder.get_architecture("native");
38 return prefix+"-"+native.get_tool(t);
41 throw KeyError("Unknown tool");
45 Architecture::Loader::Loader(Architecture &a):
48 add("prefix", &Architecture::prefix);
49 add("tool", &Loader::tool);
52 void Architecture::Loader::tool(const string &t, const string &p)