if(architecture->is_cross())
command = format("%s-%s", architecture->get_cross_prefix(), command);
executable = builder.get_vfs().find_binary(command);
if(architecture->is_cross())
command = format("%s-%s", architecture->get_cross_prefix(), command);
executable = builder.get_vfs().find_binary(command);
string GnuCompiler::create_build_signature(const BuildInfo &binfo) const
{
string result = FS::basename(executable->get_path());
string GnuCompiler::create_build_signature(const BuildInfo &binfo) const
{
string result = FS::basename(executable->get_path());
argv.push_back("-pedantic");
argv.push_back("-Wno-long-long");
argv.push_back("-Wshadow");
argv.push_back("-pedantic");
argv.push_back("-Wno-long-long");
argv.push_back("-Wshadow");
argv.push_back("-Wfloat-equal");
argv.push_back("-Wconversion");
argv.push_back("-Wwrite-strings");
argv.push_back("-Wfloat-equal");
argv.push_back("-Wconversion");
argv.push_back("-Wwrite-strings");
for(BuildInfo::PathList::const_iterator i=binfo.incpath.begin(); i!=binfo.incpath.end(); ++i)
argv.push_back("-I"+i->str());
for(BuildInfo::DefineMap::const_iterator i=binfo.defines.begin(); i!=binfo.defines.end(); ++i)
for(BuildInfo::PathList::const_iterator i=binfo.incpath.begin(); i!=binfo.incpath.end(); ++i)
argv.push_back("-I"+i->str());
for(BuildInfo::DefineMap::const_iterator i=binfo.defines.begin(); i!=binfo.defines.end(); ++i)
argv.push_back(relative(obj_path, work_dir).str());
argv.push_back(relative(src_path, work_dir).str());
argv.push_back(relative(obj_path, work_dir).str());
argv.push_back(relative(src_path, work_dir).str());