diff options
author | Kurt Zenker <kz@openoffice.org> | 2008-03-05 17:29:01 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2008-03-05 17:29:01 +0000 |
commit | 542120e5d9210e506960321516e9b1181cd51d76 (patch) | |
tree | 254aa89c049e54625f3db9e8e91504e33bb0f7f2 /dmake | |
parent | 7e0d741a6fe72c62d9eb3efa48beb63fd7ef7389 (diff) |
INTEGRATION: CWS dmake412_DEV300 (1.8.2); FILE MERGED
2007/11/12 00:12:02 vq 1.8.2.2: #i83540# Make dmake buildable with .NET 2003 again.
2007/11/11 23:05:48 vq 1.8.2.1: #i83540# Enable parallel builds with native W32 dmake. (First MinGW only.)
Diffstat (limited to 'dmake')
-rw-r--r-- | dmake/imacs.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/dmake/imacs.c b/dmake/imacs.c index dc7547932076..437a2a53c8a6 100644 --- a/dmake/imacs.c +++ b/dmake/imacs.c @@ -1,4 +1,4 @@ -/* RCS $Id: imacs.c,v 1.8 2007-10-15 15:39:37 ihi Exp $ +/* RCS $Id: imacs.c,v 1.9 2008-03-05 18:29:01 kz Exp $ -- -- SYNOPSIS -- Define default internal macros. @@ -137,9 +137,14 @@ Create_macro_vars() _set_int_var( "PREP", "0", M_DEFAULT, &Prep ); (void) Def_macro("MAXLINELENGTH", "1024", M_FLAG | M_DEFAULT); - /* set MAXPROCESSLIMIT high initially so that it allows MAXPROCESS to - * change from command line. */ + /* MAXPROCESSLIMIT is overwritten by the ruletab.c settings. Set its + * initial value high so that it allows MAXPROCESS to be changed + * from the command line. */ _set_int_var( "MAXPROCESSLIMIT", "100", M_DEFAULT|M_NOEXPORT,&Max_proclmt ); +#if defined(USE_CREATEPROCESS) + /* Set the OS early enough. */ + Max_proclmt = MAXIMUM_WAIT_OBJECTS; +#endif _set_int_var( "MAXPROCESS", "1", M_DEFAULT|M_NOEXPORT, &Max_proc ); sprintf(buf,"%d",NAME_MAX); _set_int_var( "NAMEMAX", buf, M_DEFAULT|M_NOEXPORT, &NameMax); |