2
0
mirror of https://github.com/boostorg/build.git synced 2026-01-19 04:02:14 +00:00

13490 Commits

Author SHA1 Message Date
Nikita Kniazev
56d0293f1c Fix build.bat/bootstrap.bat exit code (#371)
1. cmd.exe quirk 1: `exit /b 1` sets error code `0` for **the process**, even though it sets `errorlevel` to `1`.
2. `bootstrap.bat` needs to check that `build.bat` succeded (cmd.exe quirk 2: `echo off` doesn't change `errorlevel`).
3. `build.bat` overrides exit code with call to `dir *.exe`.
4. `setlocal` will rollback `pushd` on exit (that also helps with Ctrl+C).
2024-04-21 08:21:51 -05:00
Rene Rivera
0513ee6681 Add history note for PR #370. 2024-04-20 22:30:39 -05:00
Nikita Kniazev
74311faeff Fix Solaris/SunOS detection (#370)
GCC doesn't define `sun`.

Tested on 'SunOS solaris 5.11 11.4.0.15.0 i86pc i386 i86pc'
2024-04-20 21:27:51 -05:00
Rene Rivera
d5a432a6d0 Abandon FreeBSD clang10 testing as it's unavailable. 2024-04-20 16:01:43 -05:00
Rene Rivera
2e8f6cd615 Add note for PR #369. 2024-04-20 15:41:55 -05:00
Nikita Kniazev
be168aca85 Default to Clang on FreeBSD and OpenBSD (#369)
* FreeBSD since 2012: https://lists.freebsd.org/pipermail/freebsd-current/2012-September/036480.html
* OpenBSD since 2017-2020: https://marc.info/?l=openbsd-cvs&m=150109829003860
2024-04-20 15:35:34 -05:00
Rene Rivera
b75a965c50 Add backward compatibility for immediate recursive module import (with a warning). 2024-04-20 11:15:07 -05:00
Rene Rivera
dee079980e Add latest Boost releases for CI testing. 2024-04-20 11:13:49 -05:00
Rene Rivera
e249722ccd Fix stack overflow on recursive module import.
The import would load modules that had already been loaded instead of just importing the symbols. This would cause stack overflows if a module happened to accidentally re-load itself indefinitely. This fixes the overflow by importing but not loading modules that recurse.

fixes #367
2024-04-19 09:25:12 -05:00
Rene Rivera
ec49b98050 Bump versions for new release cycle. 2024-04-17 11:13:50 -05:00
Rene Rivera
efbf6ce59b B2 5.1.0 boost-1.85.0 2024-03-10 10:11:04 -05:00
Rene Rivera
40f603aa89 Put back boost_mpi ref as we need until the usage is fixed. 2024-03-09 21:52:43 -06:00
Rene Rivera
666de45ea4 Info for B2 5.1.0 release. 2024-03-09 15:07:03 -06:00
Rene Rivera
2d19cabbfd Add history notes for PRs. 2024-03-08 13:32:03 -06:00
John McFarlane
6df4b57fe0 Fix QCC debug build flag (#364)
As per the patch put forward in https://github.com/boostorg/build/issues/453
2024-03-08 13:17:22 -06:00
Christian Seiler
58da9d0824 mingw: alter linker commands to always replace backslashes with forward slashes (#361)
* src/tools/gcc.jam:
     Add missing :T for target file paths in linker invocation rules.
     This fixes builds when b2 uses a response file instead of the
     command line after a size limit is reached.

Co-authored-by: Christian Seiler <c.seiler@luxflux.de>
2024-03-08 07:19:25 -06:00
Rene Rivera
2028ffae01 Match direct searched projects.
This adds matching of projects that are found directly with the project-search rule.
2024-03-06 22:29:02 -06:00
Rene Rivera
d9ae12d386 Fix compile for older gcc and clang std libraries. 2024-03-06 21:06:55 -06:00
Rene Rivera
c7943c0549 Add mpi.run-flags feature.
Adds run-flags feature to allow more control on how MPI run targets are executed. This also removes the Boost specific dependency in the `mpi-test` rule.
2024-03-06 09:01:34 -06:00
Rene Rivera
6c1a6557b0 Add list of failed and skipped targets to tail summary.
This expands out the failed and skipped summary tail lines to also include a sorted list of action and targets of the corresponding failed and skipped targets. This makes it easier to see them and to further search for individual ones in teh rest of the output. It also makes it possible to quickly retry specific targets.

fixes #196
2024-03-06 08:39:42 -06:00
Rene Rivera
0538ac4aad Fix use of tabs instead of spaces when formatting code. 2024-03-06 08:34:27 -06:00
Rene Rivera
54f3fc0f09 Add notes for empty file scanning. 2024-03-03 15:25:45 -06:00
Andrey Semashev
13b8a68f00 Make C/C++/ObjC include directive scanning pattern more strict. (#362)
1. Require that the directive is at the beginning of a line, sans
   leading spaces.
2. Require that the header name is not empty.

This eliminates majority of comments that look like #include directives.
One practical example is a comment in Boost.Wave that has "#include <>"
and "#include """ in its body.
2024-03-03 15:23:18 -06:00
Rene Rivera
1d74cb6142 Ignore header scanning empty file names.
Depending on the scanning regex rules it's possible to end up with empty names to try and scan for headers. Which leads to errors of trying to open such non-existent files. This avoids such errors by skipping the scanning attempt.
2024-03-03 08:28:59 -06:00
Rene Rivera
8999f75c22 Start 5.1 2024-03-03 08:06:13 -06:00
Rene Rivera
b0311a0d4f B2 5.0.1 boost-1.85.0.beta1 2024-01-30 22:50:27 -06:00
Rene Rivera
3af675b0fb PCH are broken on freebsd-gcc. Skip testing pch in freebsd. 2024-01-29 18:01:14 -06:00
Rene Rivera
2eb90fc10c Back freebsd 13.x as gcc is broken. 2024-01-29 17:39:32 -06:00
Rene Rivera
bd161df559 Give up on gcc8 on freebsd. 2024-01-26 20:50:21 -06:00
Rene Rivera
3e71443b01 Try gcc8 on freebsd 13.2. 2024-01-26 20:35:37 -06:00
Rene Rivera
3f00d924a4 It's freebsd-14-0 image. 2024-01-26 14:56:48 -06:00
Rene Rivera
5a1a5f5514 FreeBSD 13.1 is no longer available, switch to 14. 2024-01-26 09:45:33 -06:00
Rene Rivera
df5ae0558b Switch version to 5.0.1 to do a quick patch release. 2024-01-25 08:55:33 -06:00
Rene Rivera
084030b085 Support cross-compile install of B2.
Because we use the bootstrap exe for the install it was not possible to cross-compile install B2. This change dynamically chooses which b2.exe to install based on target-os and host-os. When in a cross-compile context, i.e. host-os != target-os, the b2 installed is built from source (and using target-os) instead of using the bootstrap exe.

fixes #358
2024-01-24 08:44:34 -06:00
Rene Rivera
ac4ab7e4b5 Release note. 2024-01-23 22:39:43 -06:00
Rene Rivera
f1ca839538 Fix import-search failing when given Windows path refs.
When guiven a Windows dir reference to add to the import search it would previously treat the reference as a non-native path, root it, and directly add it to the search dirs. But for windows that means it would always root it with the current dir as native win paths look like non-native relative paths. This change fixes the issue by properly creating the given ref to a non-native path and back to a native path to add to BOOST_BUILD_PATH which only contains native paths.
2024-01-23 22:31:28 -06:00
Rene Rivera
31ff337943 Bump version for next release and add docs. 2024-01-13 09:37:37 -06:00
Rene Rivera
8e18c338cd Guard no_sanitize attribute more carefully. 2024-01-12 20:42:57 -06:00
Rene Rivera
8db2305619 Fix compile for clang 3.6 which has uniform init problems.
fixes #354
2024-01-12 07:39:04 -06:00
Rene Rivera
afecd168db Fix compile for clang 3.6 which has uniform init problems.
fixes #354
2024-01-12 07:37:10 -06:00
Rene Rivera
82b627a0c0 Explicit overload set for safe_value_cache::save.
Some older compilers have problems with choosing the right overload when there's a general template vs typed arg functions. So remove template that we know should not match for other overloads.
2024-01-11 23:25:09 -06:00
Rene Rivera
f0e6456005 Clean up the locale switching. 2024-01-11 14:07:26 -06:00
Rene Rivera
2dee0a04aa Let try C.UTF-8 locale to get the unicode to pass through.
[skip ci]
2024-01-11 12:33:44 -06:00
Rene Rivera
facdf83110 Debug: show the OS locales supported.
[skip ci]
2024-01-11 09:54:00 -06:00
Rene Rivera
c855511d83 Try forcing the system locale to utf-8 for C land.
[skip ci]
2024-01-11 08:43:32 -06:00
Rene Rivera
36aaf601de Brute force open fname to utf-8 as system encoding is bonkers on py 3.5.
[ski ci]
2024-01-10 23:05:01 -06:00
Rene Rivera
7514810365 Try forcing the file name to the platform encoding.
[skip ci]
2024-01-10 21:16:19 -06:00
Rene Rivera
bf8b5f2a82 Avoid unicode chars in py str.format.
[skip ci]
2024-01-09 22:49:34 -06:00
Rene Rivera
4dc3f1d821 And yet one more py f-string removal. 2024-01-09 11:59:08 -06:00
Rene Rivera
affa524b49 More py f-string removals. 2024-01-09 10:32:03 -06:00