Target *GnuCompiler::create_target(const list<Target *> &sources, const string &)
{
if(sources.size()!=1)
- throw invalid_argument("GnuCCompiler::create_target");
+ throw invalid_argument("GnuCompiler::create_target");
SourceFile &source = dynamic_cast<SourceFile &>(*sources.front());
ObjectFile *obj = new ObjectFile(builder, *source.get_component(), source);
obj->set_tool(*this);
bool self_ok = state!=BUILDING;
for(Target *d: depends)
{
- // Avoid infinite recursion if a target repends on its own side effect
+ // Avoid infinite recursion if a target depends on its own side effect
if(any_equals(side_effects, d))
continue;