Don't force things that have dependencies against .WAIT nodes to be rebuilt.

This is what causes all of ksh to be built every time through.
This commit is contained in:
dsl 2007-01-01 21:35:40 +00:00
parent d584a8d23a
commit 388fdf7f68

View File

@ -1,4 +1,4 @@
/* $NetBSD: make.c,v 1.71 2006/12/21 20:05:37 dsl Exp $ */ /* $NetBSD: make.c,v 1.72 2007/01/01 21:35:40 dsl Exp $ */
/* /*
* Copyright (c) 1988, 1989, 1990, 1993 * Copyright (c) 1988, 1989, 1990, 1993
@ -69,14 +69,14 @@
*/ */
#ifndef MAKE_NATIVE #ifndef MAKE_NATIVE
static char rcsid[] = "$NetBSD: make.c,v 1.71 2006/12/21 20:05:37 dsl Exp $"; static char rcsid[] = "$NetBSD: make.c,v 1.72 2007/01/01 21:35:40 dsl Exp $";
#else #else
#include <sys/cdefs.h> #include <sys/cdefs.h>
#ifndef lint #ifndef lint
#if 0 #if 0
static char sccsid[] = "@(#)make.c 8.1 (Berkeley) 6/6/93"; static char sccsid[] = "@(#)make.c 8.1 (Berkeley) 6/6/93";
#else #else
__RCSID("$NetBSD: make.c,v 1.71 2006/12/21 20:05:37 dsl Exp $"); __RCSID("$NetBSD: make.c,v 1.72 2007/01/01 21:35:40 dsl Exp $");
#endif #endif
#endif /* not lint */ #endif /* not lint */
#endif #endif
@ -732,7 +732,7 @@ Make_Update(GNode *cgn)
fprintf(debug_file, "- not needed\n"); fprintf(debug_file, "- not needed\n");
continue; continue;
} }
if (mtime == 0) if (mtime == 0 && !(cgn->type & OP_WAIT))
pgn->flags |= FORCE; pgn->flags |= FORCE;
/* /*