Andrey Semashev
146ab9a227
Renamed strings.h to jam_strings.h to distinguish from POSIX strings.h. ( #476 )
...
Some system headers on POSIX systems indirectly include strings.h in extern "C"
region. This sometimes results in Boost.Build's strings.h being included into
such region, which marks all string_* functions as extern "C" and changes their
name mangling rules accordingly, which causes linking errors. To resolve this
header conflict, this commit renames strings.h to jam_strings.h. And strings.cpp
to jam_strings.cpp for consistency.
Fixes https://github.com/boostorg/build/issues/468 .
2019-09-10 22:25:12 -05:00
Juan Alday
25ce5386f3
Extracts version of IBM and Sun compilers ( #474 )
...
xlc and suncc do not support the --version flag. This PR fixes the bootstrapper to use the correct flags.
2019-08-28 07:08:16 -05:00
Andrey Semashev
2b9645cd7e
Fix compiler warnings about -std=gnu11 on Cygwin. ( #458 )
...
-std=gnu11 is a flag for C source files, for C++ -std=gnu++11 should be used.
2019-07-11 06:34:28 -05:00
Rene Rivera
35c86a1bed
Start of 4.1.0 release.
2019-07-11 06:32:18 -05:00
Rene Rivera
a83f94aad2
Fix bad number of args to cpu count macro.
2019-06-18 09:24:18 -05:00
Rene Rivera
79c248c57a
Restore POSIX & Linux core count.
...
Looks like the std core count function is no worse than the POSIX &
Linux specific methods. Re-enabling those platform methods.
2019-06-18 08:09:48 -05:00
Rene Rivera
9e4bb2e28b
Disable the POSIX & Linux core count until stable.
...
Some methods for quering the cpu counts are unreliable when run
in a container or other cpuset restrictions. Disable them to prefer
the std query.
2019-06-14 23:48:59 -05:00
Rene Rivera
495410e2c1
Avoid warnings about redef of _GNU_SOURCE.
2019-06-11 21:34:58 -05:00
Rene Rivera
c27d575fb3
Rework sysinfo cpu to avoid overcounts.
...
When running in Linux containers the POSIX sysconf can return "too many"
cores or cpus. Instead we prefer using Linux specific sched_getaffinity
there.
2019-06-11 21:26:25 -05:00
Rene Rivera
a8ab76ef97
Final fallback for cpu count to use std::thread.
2019-06-04 17:07:24 -05:00
Rene Rivera
52d0cb791c
Fix some 11 warnings.
2019-06-04 09:07:39 -05:00
Rene Rivera
451059949d
Implement minimal cpu sys info for POSIX.
...
This implements partial cpu count information on POSIX systems using
`sysconf` call. This should be the fallback for most Unix like systems
if they don't have a more accurate cpu count API.
2019-06-04 08:25:47 -05:00
Rene Rivera
150d69bd57
Default to available cpu threads for -j option.
...
This adds a `b2::system_info` class to obtain available information on
system we are running in. Currently provides CPU counts.
And currently only implemented for macOS.
2019-06-03 18:39:22 -05:00
Rene Rivera
37bcce2f35
Minor change for b2 to build with bcc32.
2019-05-08 22:46:08 -05:00
Rene Rivera
f553984b77
Fix cygwin engine build from missing syms.
...
[fixes 427]
2019-05-01 17:05:54 -05:00
Steven Watanabe
2d306dbe9c
Fix errors reported by ubsan. (memcpy w/ nullptr).
2019-04-24 16:31:31 -06:00
Rene Rivera
0f6f083806
Attemp to fix Linux OS predef detection spec.
2019-04-16 21:15:30 -05:00
Rene Rivera
663d2a82d9
Need to def NT as 1 to match default -DNT.
2019-04-15 09:28:54 -05:00
Rene Rivera
8667d6df4d
Add auto-detect of NT and VMS.
2019-04-15 08:30:31 -05:00
Rene Rivera
b3ef77492e
Remove obsolete build file.
2019-04-14 20:44:29 -05:00
Rene Rivera
0b9914ea90
Add jambase source generation to build.
2019-04-08 18:24:31 -05:00
Rene Rivera
bece47c602
Update grammar gen for latest bison.
2019-04-08 10:34:24 -05:00
Rene Rivera
460f4aa1f4
Fix jamgram.h/pp reference.
2019-04-08 10:22:24 -05:00
Rene Rivera
4cc9183336
Add grammer build.
2019-04-08 10:20:08 -05:00
Rene Rivera
0c1e3a7689
Rename to cpp files and add dev builds of b2.
2019-04-07 15:17:30 -05:00
Rene Rivera
418c7b0bbb
Merge remote-tracking branch 'origin/develop' into feature/cxx
2019-04-03 21:53:55 -05:00
Rene Rivera
39e834c175
Change to v 4.0.0.
...
Go back to semantic versioning instead of date versioning.
Start documenting changes for each version again.
2019-04-03 21:25:40 -05:00
Steven Watanabe
e7a54aadeb
Handle zero-length matches in regex.split and fix their handling in regex.replace for non-empty strings.
2019-04-03 14:49:11 -06:00
Steven Watanabe
304dcb656e
Handle empty matches in regex.replace. Fixes #421 .
2019-04-03 11:29:34 -06:00
Rene Rivera
cf21e34e70
Fix msvc compile, lib links must be last.
...
[skip travis]
2019-04-03 07:19:32 -05:00
Rene Rivera
76663ef722
Cleanup of Windows build scripts.
...
[skip travis]
2019-04-02 23:25:36 -05:00
Rene Rivera
b2c553914a
Don't run compiler on config.
...
[skip travis]
2019-04-02 16:30:35 -05:00
Rene Rivera
eb92f67532
Remove need to define YY syms in build scripts.
2019-04-01 17:19:48 -05:00
Rene Rivera
b5a8849052
Print out cxx version before building.
...
Set AP to use py3.
2019-03-30 14:37:40 -05:00
Rene Rivera
0ec79867fd
Fix more references to C vs C++ compilers.
2019-03-30 08:13:47 -05:00
Rene Rivera
f40329cc44
Add note about CXX & CXXFLAGS.
2019-03-29 07:55:07 -05:00
Rene Rivera
5d49abc1f2
More toolsets to c++ compiling and clean up.
2019-03-28 21:40:20 -05:00
Rene Rivera
d10585c9f9
More cxx toolsets on build.sh.
2019-03-27 22:45:05 -05:00
Rene Rivera
c413c6a789
Convert more toolsets to c++.
2019-03-27 08:14:03 -05:00
Rene Rivera
81f9ba9722
Giving up on LTO. Too hard to get working on CI.
...
[skip appveyor]
2019-03-26 15:19:31 -05:00
Rene Rivera
d108ee5211
Tweak intel compilers to build as c++.
...
Another try and clang3 compilers in Travis.
2019-03-26 12:00:03 -05:00
Rene Rivera
361f0e99ef
Debug travis clang3 builds.
...
[skip appveyor]
2019-03-26 07:28:59 -05:00
Rene Rivera
c7c1d19e61
Fix popen redef error and remove old mingw as it doesn't have popen.
2019-03-25 23:18:13 -05:00
Rene Rivera
e50286fe49
Fix mingw using posix instead of windows api for popen.
2019-03-25 22:16:37 -05:00
Rene Rivera
053afa5e05
Tweak path extract syntax to work with mingw.
...
[skip travis]
2019-03-22 21:22:26 -05:00
Rene Rivera
0ce41b8bd6
Some debugging of FOR.
...
[skip travis]
2019-03-22 20:12:51 -05:00
Rene Rivera
f5587c1f91
Undo command extensions, as it just fails.
...
[skip travis]
2019-03-22 09:27:30 -05:00
Rene Rivera
9e499e300a
Maybe cmd extensions are disabled?
2019-03-22 08:06:22 -05:00
Rene Rivera
505c8eacfd
Try and fix dirname logic for mingw CXX.
...
[skip travis]
2019-03-21 21:52:42 -05:00
Rene Rivera
0d993b8d1b
Fix bad var name in for loop.
...
[skip travis]
2019-03-21 21:02:08 -05:00