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

16 Commits

Author SHA1 Message Date
Rene Rivera
c9cc1ae2ed Replace refs to boost.org witth bfgroup.xyz. 2021-02-20 21:35:16 -06:00
Pino Toscano
25879fc24d Basic changes for GNU/Hurd (#676)
* Define OSMINOR & OS_HURD on GNU/Hurd

Add a way to identify GNU/Hurd with b2, and also in the Python support.

* Use /proc/self/exe for executable_path on Hurd

Use the Linux compatibility procfs translator to get the full path of
the current executable.

* Define _GNU_SOURCE on any GNU libc-based OS

Make sure to enable GNU features when building on any OS that uses
GNU libc.
2020-12-14 13:37:32 -06:00
Rene Rivera
add4dfcd4f Fix for engine compile on FreeBSD. 2020-09-17 09:22:25 -05:00
René Ferdinand Rivera Morell
84666e77fa 64/32 bit compile working by using int32 types as needed. 2020-09-09 09:46:08 -05:00
David McFarland
1da0fe27d1 Use /proc/self/exe for executable_path on Cygwin (#644) 2020-08-28 23:54:24 -05:00
Rene Rivera
4f6f4a2510 Add missing early exits to bootstrap sequence.
Some tests failed because the bootstrap would continue to run even
detecting a problem. This puts in the missing early return statements
in the boost-build builtin rule to get the short circuit on error
like the original Jambase.
2020-06-23 22:15:07 -05:00
Rene Rivera
59b7a6dc69 Port Jambase to C++.
This ports the minimal Jambase to native C++. This removes the need for
mkjambase and the Jambase files. To accomplish that it adds C++
utility wrapers around Jam language primitives. Which makes future
similar work much easier.
2020-06-22 08:48:24 -05:00
Nikita Kniazev
0eadb37690 Print fopen fail reason (#583) 2020-05-05 08:46:17 -05:00
Mateusz Łoskot
bdccf53eec Make sure b2 exits immediately on syntax errors (#540)
Add test verifying Jam syntax error results in non-zero exit status.

Refines #538
Fixes #539
2020-03-02 14:03:38 -06:00
Mateusz Łoskot
71b8d4b823 Switch to explicit ANSI variants of Win32 API functions (#543)
Allow clean compilation with /DUNICODE defined.

Fixes #542
2020-02-28 07:32:34 -06:00
Rene Rivera
e115f07729 Clean up build warnings (gcc & clang). 2020-02-24 22:10:15 -06:00
Mateusz Łoskot
b02e4c4e50 Fix non-zero exit code on Jam parsing errors (#538)
Prevent resetting the non-Zero status returned from yyanyerrors
on any parsing errors.
2020-02-22 15:24:06 -06:00
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
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
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
0c1e3a7689 Rename to cpp files and add dev builds of b2. 2019-04-07 15:17:30 -05:00