File tree 3 files changed +54
-1
lines changed
docker/boost-msvc-2022/src/app
3 files changed +54
-1
lines changed Original file line number Diff line number Diff line change 8
8
9
9
set exit_code = 0
10
10
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
+
11
27
call " %MSVC_BUILD_DIR% \%MSVC_CMD_BOOTSTRAP% "
12
28
set exit_code = %errorlevel%
13
29
if %exit_code% neq 0 goto exit
Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change @@ -42,7 +42,16 @@ if (Test-Path -Path "${env:BOOST_ROOT_DIR}") {
42
42
}
43
43
44
44
$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
+ }
46
55
47
56
# Build Boost.Build
48
57
$env: MSVC_CMD_BOOTSTRAP = " vcvars64.bat"
You can’t perform that action at this time.
0 commit comments