Skip to content

Commit a3f1f70

Browse files
authored
Support toolset v145 (Visual Studio 2026) (#1787)
1 parent a549532 commit a3f1f70

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/vcpkg/visualstudio.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ namespace vcpkg::VisualStudio
2424
static constexpr StringLiteral V_141 = "v141";
2525
static constexpr StringLiteral V_142 = "v142";
2626
static constexpr StringLiteral V_143 = "v143";
27+
static constexpr StringLiteral V_145 = "v145";
2728

2829
struct VisualStudioInstance
2930
{
@@ -168,6 +169,7 @@ namespace vcpkg::VisualStudio
168169

169170
// VS 2017 changed the installer such that cl.exe cannot be found by path navigation and
170171
// the env variable is only set when vcvars has been run. Therefore we close the safety valves.
172+
maybe_append_comntools("vs180comntools", "18.0", false);
171173
maybe_append_comntools("vs170comntools", "17.0", false);
172174
maybe_append_comntools("vs160comntools", "16.0", false);
173175
maybe_append_legacy_vs("vs140comntools", "Microsoft Visual Studio 14.0", "14.0");
@@ -274,6 +276,10 @@ namespace vcpkg::VisualStudio
274276
{
275277
toolset_version = V_143;
276278
}
279+
else if (toolset_version_prefix[3] == '5')
280+
{
281+
toolset_version = V_145;
282+
}
277283
else
278284
{
279285
// unknown toolset minor version

0 commit comments

Comments
 (0)