2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-15 13:02:11 +00:00
Commit Graph

469 Commits

Author SHA1 Message Date
Rene Rivera
5449daceab Now that the exec*.c files are really platform specific, adjust the build script to only build the needed ones for MinGW.
[SVN r39400]
2007-09-20 04:36:27 +00:00
K. Noel Belcourt
e50a11396b Fix a bug Chris Cambly reported with the timeout code on
AIX.  Apparently AIX doesn't permit a forked process to 
reference (set) memory in the parent's address space.  No 
other system seems to object to this practice but it taught
me a lesson!

The fix was to move the call to get the child process start 
time directly before calling vfork.  This isn't really fair 
to the forked process as we start counting time against the
child process that we haven't even forked (we count the 
vfork/exec call overhead against the child process).

Tested Rene's test.sh script on Sun, Linux, AIX, and Sgi.



[SVN r39399]
2007-09-20 04:11:11 +00:00
K. Noel Belcourt
5431dfdbd2 Remove unnecessary overhead in execunix.c related to
the timeout implementation.  Also removed unused variables
as diagnosed by the Sgi (mipspro) compiler.

Fixed const-correctness error in operations.hpp that
Sgi complained about.

There's no strerror_r function on Irix 6.5 so I replaced
it with a strerror call.

With these changes, I can now build process jam log and
start running Sgi tests.



[SVN r39378]
2007-09-18 22:46:26 +00:00
K. Noel Belcourt
7fa6118e55 A minor optimization to eliminate two OS calls (one
to times, one to kill).  Now all expired processes
are killed in one place.  If the select command
times out, I set each processes start_time to zero
to ensure it is picked up as an expired process.



[SVN r39361]
2007-09-18 03:27:48 +00:00
K. Noel Belcourt
445da99019 Fix One more obscure way for the timeout to miss processes.
If select times out (no processes terminated), then all running
processes can be terminated.  Cleaned up code when this condition
applies.



[SVN r39360]
2007-09-18 02:42:13 +00:00
K. Noel Belcourt
4468f9e815 Rene found a problem with the code I committed to
terminate expired processes.  This patch basically
causes the select function to return after -l seconds.
This gives me a shot at killing processes still
running.



[SVN r39358]
2007-09-17 23:30:57 +00:00
Rene Rivera
63c43e0a65 Handle invalid formats of @() as doing a straight substitution instead of erroring out.
[SVN r39357]
2007-09-17 21:35:58 +00:00
Rene Rivera
b19a4d5589 Add internal dependencies for multi-file generating actions to indicate that the targets all only appear when the first target appears. (fixes ticket #431)
[SVN r39341]
2007-09-17 08:32:24 +00:00
Rene Rivera
9685e0489f Really fix missing INT_MAX declaration. And fix pma.jam test on Unix.
[SVN r39336]
2007-09-17 00:54:20 +00:00
K. Noel Belcourt
df836c6bd9 Added missing #include <utility> and qualified
make_pair with std:: to library_status.cpp.

Added missing headers to make1.c and missing prototypes
to builtin.h

Modified execunix.c to add support for terminating
processes that consume too much cpu or that hang and
fail to consume cpu at all.  This in support of the
bjam -lx option.

http://svn.boost.org/trac/boost/ticket/1266#comment:2



[SVN r39334]
2007-09-17 00:27:37 +00:00
Rene Rivera
f0a4613cf9 Fix undeclared INT_MAX on some platforms, i.e. Linux.
[SVN r39332]
2007-09-16 22:13:02 +00:00
Rene Rivera
acb224e465 Define OSPLAT var unconditionally, and more generically, when possible. (fixes #798)
[SVN r39331]
2007-09-16 21:55:02 +00:00
Rene Rivera
1859f9fb44 Implement @() expansion during parse phase. (fixes #721)
[SVN r39330]
2007-09-16 21:35:19 +00:00
Vladimir Prus
566764c705 Initial support for defining action body from Python.
[SVN r39102]
2007-09-01 08:55:35 +00:00
Roland Schwarz
94497c088b Revert the last change, since the directory passed to boost-build should be first in searched paths, else project local build system will not be picked correctly.
The order had been changed to allow searching of alternate user-config.jam files from boost build. This better should be done with --user-config= switch or similar. 

[SVN r38618]
2007-08-13 15:35:16 +00:00
Rene Rivera
8810fb0b7e Update GC support to work with Boehm GC 7.0.
[SVN r38594]
2007-08-11 05:53:37 +00:00
Rene Rivera
b04bb27397 Bring back midding output of -n option. The -o option continues to be broken as it has been for a long time now because of the @ file feature. (fixes #1155)
[SVN r38590]
2007-08-11 02:39:13 +00:00
Roland Schwarz
9801916f14 A small fix, so -d+2 will always show the "real" commands being executed instead of casually the name of a temporary batch file.
[SVN r38483]
2007-08-06 20:20:26 +00:00
Vladimir Prus
7922234c20 Correct includes per #1056.
[SVN r38185]
2007-07-11 18:21:15 +00:00
Rene Rivera
c6ef28c85e Make use of output dir options of msvc to not polute src dir with compiled files.
[SVN r38163]
2007-07-07 17:21:20 +00:00
K. Noel Belcourt
3e9ed9b799 Set MAXLINE in jam.h to 23k bytes for AIX. The piecemeal archive action
was broken with the default MAXLINE of 102400.  Because the AIX shell uses
some of the 24k default buffer size for its own use, I reduced it to 23k.


[SVN r38138]
2007-07-04 17:36:17 +00:00
Rene Rivera
73318c7347 Add "sun" as alias to Sun Workshop compiler tools.
[SVN r38050]
2007-06-21 18:33:08 +00:00
Rene Rivera
a834daf2e0 Delete commented out code.
[SVN r38038]
2007-06-19 14:32:32 +00:00
Nicola Musatti
85f564d2e0 Worked around a Borland problem
[SVN r38037]
2007-06-19 07:04:20 +00:00
Rene Rivera
97681fd7eb Fix to compile in Borland C99: CLOCKS_PER_SEC, and clock_t, can be a float.
[SVN r38034]
2007-06-19 03:00:46 +00:00
Rene Rivera
865750bad1 Restore "Add support for building bjam with pgi and pathscale toolsets." changes since the previous merge nuked them.
[SVN r38013]
2007-06-17 15:44:19 +00:00
Rene Rivera
2d0d23dd05 Fix type equivalence warnings, and possible errors.
[SVN r38010]
2007-06-16 21:28:13 +00:00
Rene Rivera
b3128a55bd Implement running action commands through pipes (-p option) to fix jumbled output when using parallel execution with -j option. This is implemented for Unix variants, and Windows (Win32/NT). [ticket #994]
[SVN r38009]
2007-06-16 20:52:36 +00:00
K. Noel Belcourt
8d5933f029 Add support for building bjam with pgi and pathscale toolsets.
[SVN r37924]
2007-06-07 03:56:26 +00:00
Rene Rivera
609770ebf0 Fix extra file.
[SVN r37555]
2007-05-01 22:57:41 +00:00
Rene Rivera
b3599307cb Bump to version 3.1.15.
[SVN r37546]
2007-05-01 03:58:24 +00:00
Rene Rivera
8ddd260606 Improve the detection logic so that it work under vc8 running a Win64 OS. It is now possible to build a 64bit variant of bjam with vc8. Document the new buid script syntax and the numerous bjam options.
[SVN r37055]
2007-02-24 20:43:24 +00:00
Rene Rivera
190fa8b548 Oops, silence the script.
[SVN r36693]
2007-01-11 21:47:52 +00:00
Rene Rivera
f0c33c0782 Fix script errors when PATH contains parenthesis "()", like Win64 does. The fix corrects all instances of "set" just incase there are other places other than PATH where this is a problem.
[SVN r36692]
2007-01-11 21:43:47 +00:00
Vladimir Prus
6a08119aa6 Strip newline from lines passed to headerscan pattern
[SVN r36628]
2007-01-06 19:51:28 +00:00
Rene Rivera
dc12989ccb build.jam; enable gc debug info with debug build. mem.c; only enable gc debug mode with debug build, and fix compiling boehm gc with gcc/linux.
[SVN r36010]
2006-11-12 06:25:09 +00:00
Rene Rivera
ccf282a199 Fix incorrect macro def.
[SVN r35433]
2006-09-30 19:11:04 +00:00
K. Noel Belcourt
f7799d2c01 Add this option to vacpp when building bjam (-bmaxdata:0x40000000).
This option increases the amount of heap / stack space available
to bjam when it runs.  By default on IBM SP2 clusters, the available
stack is limited to 256 Mb which is insufficient for building larger
applications.

-bmaxdata=<num>
  Sets the maximum size of the area shared by the
  static data (both initialized and uninitialized)
  and the heap to <num> bytes.  The default is
  -bmaxdata=0.


[SVN r35323]
2006-09-25 21:48:04 +00:00
Rene Rivera
9b500a6778 Apply patch from Yakov Markovitch; [ 1558580 ] jam:"VAR on TARGET ?= values" unconditionally assigns values.
Add corresponding test.


[SVN r35229]
2006-09-20 16:09:19 +00:00
Rene Rivera
ef5b10c99c Display seconds in perf data times to help in multi-platform comparison and human comprehension.
[SVN r35221]
2006-09-20 04:03:20 +00:00
Rene Rivera
91f0260e6d Minor cleanup of hash code, to make reduce the likelyhood of bugs in it. Made debug build not use the custom string allocator to allow using valgrind to detect access errors.
[SVN r35154]
2006-09-18 04:00:34 +00:00
Rene Rivera
5d5f6038d7 Patch implementing new W32_GETREGNAMES builting by Bojan Resnik. Added a corresponding test for the new builtin. And cleaned up some of the documentation.
[SVN r35061]
2006-09-10 18:14:50 +00:00
Rene Rivera
9276799db0 Add support for compiling with Duma memory checking library.
[SVN r35058]
2006-09-10 17:04:21 +00:00
Rene Rivera
71475c582f Implement gc of string only hash entries (note, doesn't work likely because a buffer overrun in var expand). Allocate all character data as atomic.
[SVN r35036]
2006-09-07 18:33:04 +00:00
Rene Rivera
72d5537ab2 Add "--gc" option to build in Boehm GC allocator.
[SVN r35031]
2006-09-07 05:39:37 +00:00
Rene Rivera
c63075bd0d Add defs for accessing the raw allocation functions.
[SVN r35030]
2006-09-07 04:25:58 +00:00
Rene Rivera
f4efe8b540 Cleanup memory allocation calls to use macros defined in new mem.h header. This new header will handle configuration of both memory allocator to use, and memory profiling.
[SVN r35029]
2006-09-07 03:57:02 +00:00
Rene Rivera
d32c16c0fb Output generated files only when debug output is on, -n turns this on but -d+10 doesn't.
[SVN r34992]
2006-08-29 14:58:17 +00:00
Rene Rivera
c3e929a9e5 Applied path from Yakov Markovitch: [ 1538176 ] VARNAMES bjam rule doesn't work for global module.
[SVN r34987]
2006-08-28 19:31:34 +00:00
Rene Rivera
bd796a5279 Add the output of @() generated files to the debug output of "-n" and "-d+2". The output is added as an additional pseudo action right before the command that uses the generated files.
[SVN r34986]
2006-08-28 19:23:59 +00:00