Jonathan Neuschäfer
8b2054417c
Avoid 100% CPU utilization if no timeout is set
...
While building boost, I noticed that jam0 and bjam used 100% of a CPU.
Strace showed that they were calling poll with a zero timeout in a loop.
This is because:
- the logic in exec_wait() initializes select_timeout to globs.timeout
- globs.timeout is zero when no action timeout is specified
- poll interprets a zero timeout as "return immediately" rather than
"wait indefinitely".
Fix this by passing -1 to poll when globs.timeout is zero.
2018-04-02 15:20:57 +02:00
Steven Watanabe
0a1ffa1deb
Fix warnings on msvc. Note that the lack of a return shouldn't cause a problem, because we never actually call yypeek in a case where the return is needed, but it's still more future-proof to have it.
2018-02-19 12:28:37 -07:00
Steven Watanabe
8af8dda1e5
Increment jam version. This should actually have been done multiple times in the past, as there have been several significant updates to the engine.
2018-02-19 12:23:15 -07:00
Steven Watanabe
aff0b08eb3
#||# comments should not swallow to the end of the line.
2018-02-15 11:04:16 -07:00
Steven Watanabe
0d5e76ebf2
Upgrade the scanner to handle whitespace more intelligently
...
* The new scanner is currently disabled and only issues a warning
for tokens that would be lexed differently.
* Special case a few common uses of ':', to limit breakage to
a manageable level.
* Remove the horribly outdated Jambase code inherited from Perforce Jam
* Update all of Boost.Build to work in the presence of the new lexer.
2018-01-31 14:08:36 -07:00
Steven Watanabe
fb43f6bb60
Print output from actions immediately in single-threaded builds (-j1). Output is still buffered in parallel builds and for quiet actions. This should also fix the output order for VMS which doesn't support parallel builds. Fixes #210 .
2018-01-26 12:49:09 -07:00
Steven Watanabe
c594b12b13
Adjust check for using clock_gettime.
2017-12-23 09:47:32 -07:00
Steven Watanabe
6d7c0c752d
Quote the name of the batch script so that it works when %TMP% contains a space. Fixes #274 .
2017-12-21 15:16:45 -07:00
Steven Watanabe
d2b64dc55d
Fix crash in the debugger's backtrace when a built-in function is on the stack.
2017-12-20 15:33:01 -07:00
Steven Watanabe
8aa702aaf4
Try to fix the build for older versions of XCode.
2017-12-19 10:27:31 -07:00
Steven Watanabe
0c6d0165b0
Support nanosecond timestamp resolution for posix.
2017-12-18 13:09:07 -07:00
Steven Watanabe
6c3397fac8
Fix crash when calling a member function that doesn't exist. Fixes #260 .
2017-12-16 15:19:00 -07:00
Steven Watanabe
e31489760c
breakpoints should work even if they're hit repeatedly.
2017-12-15 15:15:54 -07:00
Steven Watanabe
d81254cba0
Fix link-fail on Windows, Take 2. FAIL_EXPECTED now works correctly for targets that have multiple updating actions. Fixes #259 .
2017-12-12 09:59:21 -07:00
Steven Watanabe
4269c9e663
Revert "Fix link-fail on Windows. FAIL_EXPECTED now works correctly for targets that have multiple updating actions. Fixes #259."
...
This reverts commit 0c3089d3c0 .
2017-12-06 08:59:17 -07:00
Steven Watanabe
994bad539a
hash requires the first element of the struct to be the key.
2017-12-05 19:27:11 -07:00
Steven Watanabe
192dedd2ee
Fix debug builds of the debugger. Fixes #245 . Fixes #246 .
2017-12-05 18:26:09 -07:00
Steven Watanabe
0c3089d3c0
Fix link-fail on Windows. FAIL_EXPECTED now works correctly for targets that have multiple updating actions. Fixes #259 .
2017-12-04 17:54:49 -07:00
Jürgen Hunold
e07c805e31
Workaround vsdevcmd_end.bat switching to %USERPROFILE%\Source
...
Fixs #236 and PR #252
2017-11-17 13:54:46 +01:00
Rene Rivera
2b44ccf5dc
Avoid various pedantic warnings.
2017-10-28 23:21:40 -05:00
Alexander Karzhenkov
48e9017139
Fix compiler warnings about deprecated language features ( #238 )
2017-10-28 22:50:55 -05:00
Ion Gaztañaga
5377199473
More fixes for MSVC 7.1:
...
- Add missing WINVER=0x0501 and _WIN32_WINNT=0x0501 to config_toolset.bat
- Add needed -D_WIN32_WINNT=0x0501 for vc7 to fix unresolved symbols
- Added alternatives to va_copy and vsnprintf in debugger.c
- Add missing fix from previous patch in strings.c
2017-08-13 22:24:57 -05:00
Ion Gaztañaga
2f84a23f8d
Fix non-C90 compatible lines
...
MSVC compilers fail to compile as they don't support declarations after statements
2017-08-12 23:06:24 -05:00
Refael Ackermann
9dc853b1cd
bump vswhere_usability_wrapper.cmd
...
* bump to 1.15.4
* specific Boost.build patch (no VCINSTALLDIR)
2017-08-09 09:03:05 -05:00
Refael Ackermann
99b01d131b
extra ERRORLEVEL reset
2017-08-09 09:03:05 -05:00
Rene Rivera
ae0c5b7a57
Change block comment to #| comment |#.
2017-07-28 16:59:31 -05:00
Rene Rivera
edc18ece12
Add block comments to jam language.
...
This adds non-nested block comments wrapped with "#*" and "*#". This
should help in cleaning up embedded documentation and generally make
writing jam code easier.
2017-07-27 08:55:44 -05:00
Rene Rivera
745c8f4c09
Merge pull request #202 from bmwiedemann/sortedlist
...
sort file lists
2017-07-17 16:26:48 -06:00
Alexander Shevchenko
4f0f683f63
Fix for bootstrap.bat failure for intel-win32.
...
See: fdbef0e3f0
2017-07-15 13:49:56 +03:00
Refael Ackermann
dc9ecf3a71
fix regression from VS2017 detection
2017-06-27 10:46:26 -04:00
Rene Rivera
2e5e8d37f3
Merge pull request #192 from refack/develop
...
Try to detect VS2017 using vswhere
2017-06-27 06:54:50 -05:00
Rene Rivera
e45e7f588f
Don't strip out EOL and other whitespace from action output.
2017-06-01 10:56:02 -05:00
Bernhard M. Wiedemann
7aa74e3029
Sort file lists
...
to enable more reproducible builds
without patching individual build definitions like
https://github.com/boostorg/container/pull/50
2017-06-01 16:16:27 +02:00
Rene Rivera
180981ccdf
Clean command output before invoking callback to ACTION_RULE.
2017-05-31 18:04:21 -05:00
Bruno Turcksin
3aa21e1796
Replace pgCC with pgc++
2017-05-17 21:13:46 -04:00
Steven Watanabe
f33cb39478
Add missing #include.
2017-05-09 17:38:52 -06:00
Edward Diener
c6b219507a
Merge branch 'vmrob-fix-eol-stripping' into develop
2017-05-08 23:00:14 -04:00
Refael Ackermann
6f63489198
Try to detect VS2017 using vswhere
2017-05-06 12:08:53 -04:00
Steven Watanabe
4aa88f9d5d
Merge branch 'debug' into develop
2017-05-02 16:03:45 -06:00
Edward Diener
b8b2b8a3a4
Merge branch 'fix-eol-stripping' of https://github.com/vmrob/build into vmrob-fix-eol-stripping
2017-05-02 07:44:15 -04:00
Steven Watanabe
8ae8407cfb
Fix incorrect return value from try_wait, which caused most parallel builds to fail.
2017-04-26 17:32:06 -06:00
Steven Watanabe
316e26ca71
Remove fixed limit to -j. Fixes #189 .
...
* execunix.c: Replace select with poll.
* execnt.c: Use RegisterWaitForSingleObject when the number of jobs exceeds MAXIMUM_WAIT_OBJECTS.
2017-04-26 14:22:06 -06:00
Rene Rivera
781a3fe111
Add user warnings about VS2017 setup.
2017-04-07 12:29:13 -05:00
Rene Rivera
838c622939
Remove use of VS2017 detection helpers in favor of ENV+path detection.
2017-04-05 16:50:53 -05:00
Steven Watanabe
80c0f5f8d2
Tests for MI.
2017-03-30 13:24:09 -06:00
Arkadiy Shapkin
d2ff572c23
Fix error handling for VS2017 detection in GetCLPath.ps1. Closes #186
2017-03-30 12:32:13 +03:00
Thomas Kent
33024da7a8
Found changes moved out of build.bat
2017-03-20 21:45:31 -05:00
Thomas Kent
56c6d1f705
Merge branch 'develop' into use_141
2017-03-20 21:41:21 -05:00
Thomas Kent
cc63090b04
Missed a couple instances
2017-03-19 08:38:04 -05:00
Thomas Kent
4d2dcc7278
Updated all the references to 14.10 and 1410 to 14.1 and 141
2017-03-19 08:26:22 -05:00