diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2012-04-11 18:27:31 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2012-04-11 18:27:31 +0000 |
commit | 519ef5db14c7fa97a982299147d82e71803016ce (patch) | |
tree | 134756bca59c352f8e39c3c8ad343822e62358f2 /usr.bin/make/gnode.h | |
parent | f74693e121b2c57b942f04d93f528facfe9bca5b (diff) |
make has had heuristics to avoid parallel make recursion.
Sometimes they mess up, so add .CHEAP/.EXPENSIVE to explicitly tell make
'hey this is not THAT bad' or 'worse than you think'.
agreed by guenther@, millert@ (and some tweaks)
Diffstat (limited to 'usr.bin/make/gnode.h')
-rw-r--r-- | usr.bin/make/gnode.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/make/gnode.h b/usr.bin/make/gnode.h index 6dc9d18e1e7..25f5032a2ef 100644 --- a/usr.bin/make/gnode.h +++ b/usr.bin/make/gnode.h @@ -1,6 +1,6 @@ #ifndef GNODE_H #define GNODE_H -/* $OpenBSD: gnode.h,v 1.18 2012/03/22 13:47:12 espie Exp $ */ +/* $OpenBSD: gnode.h,v 1.19 2012/04/11 18:27:30 espie Exp $ */ /* * Copyright (c) 2001 Marc Espie. @@ -205,6 +205,8 @@ struct GNode_ { * commands for a target */ #define OP_DEPS_FOUND 0x00800000 /* Already processed by Suff_FindDeps */ #define OP_RESOLVED 0x01000000 /* We looked harder already */ +#define OP_CHEAP 0x02000000 /* Assume job is not recursive */ +#define OP_EXPENSIVE 0x04000000 /* Recursive job, don't run in parallel */ /* * OP_NOP will return true if the node with the given type was not the |