Make source crunches work as well as object crunches; broken in the

last commit that fixed object crunches.

Repeat after me, "no excuses for not testing".
This commit is contained in:
Josef Karthauser 2001-08-17 11:11:10 +00:00
parent 98aa5183a2
commit 1554755e12
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=81823

View File

@ -644,7 +644,7 @@ void fillin_program(prog_t *p)
warnx("%s: %s: warning: could not find any .o files",
infilename, p->name);
if (!p->objdir || !p->objs)
if ((!p->srcdir || !p->objdir) && !p->objs)
p->goterror = 1;
}