summaryrefslogtreecommitdiffstats
path: root/usr.bin/make/targ.h
diff options
context:
space:
mode:
authorespie <espie@openbsd.org>2007-11-24 15:41:01 +0000
committerespie <espie@openbsd.org>2007-11-24 15:41:01 +0000
commiteb046b373dd2db6214e64770a27e673722dae173 (patch)
treeae0a0e149439e2f45c49a1cd2ced9048be1c616f /usr.bin/make/targ.h
parentSome macppc models (e.g. the 1.5 GHz G4 MacMini) have a large clock drift (diff)
downloadwireguard-openbsd-eb046b373dd2db6214e64770a27e673722dae173.tar.xz
wireguard-openbsd-eb046b373dd2db6214e64770a27e673722dae173.zip
more parallel make fixes.
Preparations to fix the engine: - new function has_been_built(gn), that tells you what's the status of a given node. Allows us to run Suff_FindDeps later, by updating the number of unmade children correctly. - take out the code that handles shell expansions in an expand_children* set of functions, called by Suff_FindDeps, among others. These must be called early in the engine to avoid creating bogus nodes. Engine fixes: - take the predecessor/successor special handling out, deal with it in separate functions. - don't count nodes. Explicitly track them all in a hash table (better way to deal with non-built issues). - don't run Suff_FindDeps at start, but just before building an actual node. This allows make to find all dependencies correctly, as in groff. Pfiou! now it works.
Diffstat (limited to 'usr.bin/make/targ.h')
-rw-r--r--usr.bin/make/targ.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/make/targ.h b/usr.bin/make/targ.h
index 8af62308438..fd88500ecaf 100644
--- a/usr.bin/make/targ.h
+++ b/usr.bin/make/targ.h
@@ -1,7 +1,7 @@
#ifndef TARG_H
#define TARG_H
/* $OpenPackages$ */
-/* $OpenBSD: targ.h,v 1.5 2007/11/02 17:27:24 espie Exp $ */
+/* $OpenBSD: targ.h,v 1.6 2007/11/24 15:41:01 espie Exp $ */
/*
* Copyright (c) 2001 Marc Espie.
@@ -79,4 +79,5 @@ extern struct ohash_info gnode_info;
extern void look_harder_for_target(GNode *);
extern void Targ_setdirs(const char *, const char *);
+const char *status_to_string(GNode *);
#endif