Skip to content

Commit

Permalink
B2 5.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
grafikrobot committed Jun 15, 2024
2 parents bb07627 + 3c0f563 commit 4a52d8c
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 30 deletions.
1 change: 1 addition & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ branches:
- /release/
- /feature\/.*/
- /backport-.*/
- /version\/.*/

skip_commits:
files:
Expand Down
14 changes: 14 additions & 0 deletions doc/src/history.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
[[b2.history]]
= History

== Version 5.2.1

This patch reverts the change to define `_HAS_EXCEPTIONS=0` for Dinkumware
std library. It has the undesired effect of changing the ABI. It's better for
user code to handle the conbination of turning off exceptions while treating
warnings as errors, and getting warnings/errors from the std library by having
the users silence the warning themselves.

This patch also fixes the case of asking to initialize any msvc toolset
versions (`using msvc ;`) when there are already versions initialized. Instead
of erroring to say that a version is already in use, it considers the set
of already initialized msvc toolsets as satisfying the request to generally
initialize msvc.

== Version 5.2.0

Many fixes in this release from regular contributors Nikita and Dmitry. There
Expand Down
2 changes: 1 addition & 1 deletion src/build/version.jam
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import numbers ;
# Mirror engine JAM_VERSION
.major = 5 ;
.minor = 2 ;
.patch = 0 ;
.patch = 1 ;


rule build ( )
Expand Down
2 changes: 1 addition & 1 deletion src/engine/patchlevel.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ Distributed under the Boost Software License, Version 1.0.

#define VERSION_MAJOR 5
#define VERSION_MINOR 2
#define VERSION_PATCH 0
#define VERSION_PATCH 1
8 changes: 7 additions & 1 deletion src/tools/msvc.jam
Original file line number Diff line number Diff line change
Expand Up @@ -1272,6 +1272,13 @@ local rule configure-really ( version ? : options * )
{
local command = [ feature.get-values <command> : $(options) ] ;

# We don't try and register any more versions than what we already know
# about when ask to discover any available versions.
if ! $(version) && ! $(command) && [ $(.versions).used ]
{
return ;
}

if ! $(version) && ! $(command)
{
# We were given neither a command, nor a version.
Expand Down Expand Up @@ -1965,7 +1972,6 @@ local rule register-toolset-really ( )
toolset.flags msvc.compile C++FLAGS <exception-handling>on/<asynch-exceptions>off/<extern-c-nothrow>on : /EHsc ;
toolset.flags msvc.compile C++FLAGS <exception-handling>on/<asynch-exceptions>on/<extern-c-nothrow>off : /EHa ;
toolset.flags msvc.compile C++FLAGS <exception-handling>on/<asynch-exceptions>on/<extern-c-nothrow>on : /EHac ;
toolset.flags msvc.compile C++FLAGS <exception-handling>off : -D_HAS_EXCEPTIONS=0 ;

toolset.flags msvc.compile C++FLAGS <cxxstd>14 : "/std:c++14" ;
toolset.flags msvc.compile C++FLAGS <cxxstd>17 : "/std:c++17" ;
Expand Down
26 changes: 0 additions & 26 deletions test/feature_exception.py

This file was deleted.

1 change: 0 additions & 1 deletion test/test_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,6 @@ def reorder_tests(tests, first_test):
"expansion",
"explicit",
"feature_cxxflags",
"feature_exception",
"feature_implicit_dependency",
"feature_relevant",
"feature_suppress_import_lib",
Expand Down

0 comments on commit 4a52d8c

Please sign in to comment.