Skip to content

Commit 91aa7f9

Browse files
committed
Support of Boost 1.83.0 in boost-msvc-2022 image (VS 2022, 17.10.x, boostorg/boost#914).
1 parent 2511ddd commit 91aa7f9

File tree

3 files changed

+54
-1
lines changed

3 files changed

+54
-1
lines changed

docker/boost-msvc-2022/src/app/bootstrap.bat

+16
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,22 @@ rem
88

99
set exit_code=0
1010

11+
if not "--%BOOST_PATCH_FILE%" == "--" (
12+
set "DEFAULT_PATH=%PATH%"
13+
set "PATH=%MSYS_HOME%\usr\bin;%PATH%"
14+
15+
patch -uNf -p0 -i "%BOOST_PATCH_FILE%"
16+
set exit_code=%errorlevel%
17+
if %exit_code% neq 0 (
18+
if %exit_code% neq 1 goto exit
19+
)
20+
21+
rem Reset errorlevel to zero
22+
cmd /c "exit /b 0"
23+
24+
set "PATH=%DEFAULT_PATH%"
25+
)
26+
1127
call "%MSVC_BUILD_DIR%\%MSVC_CMD_BOOTSTRAP%"
1228
set exit_code=%errorlevel%
1329
if %exit_code% neq 0 goto exit
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
--- ./tools/build/src/tools/msvc.jam 2024-10-26 21:25:07.777160300 +0300
2+
+++ ./tools/build/src/tools/msvc.jam 2024-10-26 21:25:07.777160300 +0300
3+
@@ -23,6 +23,7 @@
4+
tools on Microsoft Windows. The supported products and versions of
5+
command line tools are listed below:
6+
7+
+* Visual Studio 2022-14.3
8+
* Visual Studio 2019-14.2
9+
* Visual Studio 2017—14.1
10+
* Visual Studio 2015—14.0
11+
@@ -1137,7 +1138,7 @@
12+
}
13+
else
14+
{
15+
- if [ MATCH "(14.3)" : $(version) ]
16+
+ if [ MATCH "(14.[34])" : $(version) ]
17+
{
18+
if $(.debug-configuration)
19+
{
20+
@@ -1316,7 +1317,7 @@
21+
# version from the path.
22+
# FIXME: We currently detect both Microsoft Visual Studio 9.0 and
23+
# 9.0express as 9.0 here.
24+
- if [ MATCH "(MSVC\\\\14.3)" : $(command) ]
25+
+ if [ MATCH "(MSVC\\\\14.[34])" : $(command) ]
26+
{
27+
version = 14.3 ;
28+
}

docker/boost-msvc-2022/src/app/start.ps1

+10-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,16 @@ if (Test-Path -Path "${env:BOOST_ROOT_DIR}") {
4242
}
4343

4444
$env:B2_BIN = "${env:BOOST_ROOT_DIR}\b2.exe"
45-
$env:B2_TOOLSET = "msvc-14.3"
45+
$env:B2_TOOLSET = "msvc-14.4"
46+
47+
# Prepare patch for Boost
48+
if (-not (Test-Path env:BOOST_PATCH_FILE)) {
49+
$env:BOOST_PATCH_FILE = "${PSScriptRoot}\patches\boost-${env:BOOST_VERSION}.patch"
50+
}
51+
if (-not (Test-Path -Path "${env:BOOST_PATCH_FILE}")) {
52+
Write-Warning "Patch for chosen version of Boost (${env:BOOST_VERSION}) was not found at ${env:BOOST_PATCH_FILE}"
53+
$env:BOOST_PATCH_FILE = ""
54+
}
4655

4756
# Build Boost.Build
4857
$env:MSVC_CMD_BOOTSTRAP = "vcvars64.bat"

0 commit comments

Comments
 (0)