Skip to content

Commit 05b2d9f

Browse files
committed
build: Bump default PlatformToolset for Visual Studio 2022
1 parent 460c6c7 commit 05b2d9f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.cirrus.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ task:
180180
- '%x64_NATIVE_TOOLS%'
181181
- cd %CIRRUS_WORKING_DIR%
182182
- ccache --zero-stats --max-size=%CCACHE_SIZE%
183-
- python build_msvc\msvc-autogen.py -toolset v143
183+
- python build_msvc\msvc-autogen.py
184184
- msbuild build_msvc\bitcoin.sln -property:CLToolExe=%WRAPPED_CL% -property:Configuration=Release -maxCpuCount -verbosity:minimal -noLogo
185185
- ccache --show-stats
186186
unit_tests_script:

build_msvc/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Building
5050
1. Use Python to generate `*.vcxproj` for the Visual Studio 2022 toolchain from Makefile:
5151

5252
```cmd
53-
python build_msvc\msvc-autogen.py -toolset v143
53+
python build_msvc\msvc-autogen.py
5454
```
5555

5656
2. An optional step is to adjust the settings in the `build_msvc` directory and the `common.init.vcxproj` file. This project file contains settings that are common to all projects such as the runtime library version and target Windows SDK version. The Qt directories can also be set. To specify a non-default path to a static Qt package directory, use the `QTBASEDIR` environment variable.

build_msvc/msvc-autogen.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from shutil import copyfile
1010

1111
SOURCE_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'src'))
12-
DEFAULT_PLATFORM_TOOLSET = R'v142'
12+
DEFAULT_PLATFORM_TOOLSET = R'v143'
1313

1414
libs = [
1515
'libbitcoin_cli',
@@ -93,7 +93,7 @@ def set_properties(vcxproj_filename, placeholder, content):
9393
def main():
9494
parser = argparse.ArgumentParser(description='Bitcoin-core msbuild configuration initialiser.')
9595
parser.add_argument('-toolset', nargs='?', default=DEFAULT_PLATFORM_TOOLSET,
96-
help='Optionally sets the msbuild platform toolset, e.g. v142 for Visual Studio 2019.'
96+
help='Optionally sets the msbuild platform toolset, e.g. v142 for Visual Studio 2019, or v143 for Visual Studio 2022.'
9797
' default is %s.'%DEFAULT_PLATFORM_TOOLSET)
9898
args = parser.parse_args()
9999
set_properties(os.path.join(SOURCE_DIR, '../build_msvc/common.init.vcxproj'), '@TOOLSET@', args.toolset)

0 commit comments

Comments
 (0)