using namespace Msp;
AndroidCompiler::AndroidCompiler(Builder &b, const Architecture &a, const string &t, const AndroidNdk &n):
- GnuCompiler(b, a, t),
+ GnuCompiler(b, &a, t),
ndk(n)
{
if(ndk.get_root_dir().empty())
using namespace Msp;
GnuArchiver::GnuArchiver(Builder &b, const Architecture &a):
- Tool(b, a, "AR")
+ Tool(b, &a, "AR")
{
set_command("ar", true);
input_suffixes.push_back(".o");
}
GnuCompiler::GnuCompiler(Builder &b, const Architecture &a, const string &t):
- Tool(b, a, t),
+ Tool(b, &a, t),
version(0)
{
if(tag=="CC")
using namespace Msp;
GnuLinker::GnuLinker(Builder &b, const Architecture &a):
- Tool(b, a, "LINK")
+ Tool(b, &a, "LINK")
{
input_suffixes.push_back(".o");
input_suffixes.push_back(".a");
using namespace Msp;
MingwDllTool::MingwDllTool(Builder &b, const Architecture &a):
- Tool(b, a, "DLL")
+ Tool(b, &a, "DLL")
{
set_command("dlltool", true);
set_run(_run);
using namespace Msp;
MsvcArchiver::MsvcArchiver(Builder &b, const Architecture &a, const MicrosoftTools &m):
- Tool(b, a, "AR"),
+ Tool(b, &a, "AR"),
ms_tools(m)
{
input_suffixes.push_back(".o");
using namespace Msp;
MsvcCompiler::MsvcCompiler(Builder &b, const Architecture &a, const string &t, const MicrosoftTools &m):
- Tool(b, a, t),
+ Tool(b, &a, t),
ms_tools(m)
{
if(tag=="CC")
using namespace Msp;
MsvcLinker::MsvcLinker(Builder &b, const Architecture &a, const MicrosoftTools &m):
- Tool(b, a, "LINK"),
+ Tool(b, &a, "LINK"),
ms_tools(m)
{
input_suffixes.push_back(".o");
std::vector<std::string> problems;
Tool(Builder &b, const std::string &t): Tool(b, 0, t) { }
- Tool(Builder &b, const Architecture &a, const std::string &t): Tool(b, &a, t) { }
-private:
Tool(Builder &b, const Architecture *a, const std::string &t): builder(b), architecture(a), tag(t) { }
public:
virtual ~Tool() { }