Skip to content

Instantly share code, notes, and snippets.

@KHeresy
Created January 9, 2026 08:39
Show Gist options
  • Select an option

  • Save KHeresy/fe27af04cd15eddb9d186b1fad62f3a1 to your computer and use it in GitHub Desktop.

Select an option

Save KHeresy/fe27af04cd15eddb9d186b1fad62f3a1 to your computer and use it in GitHub Desktop.
Boost-for-VisualStudio2026
diff --git a/tools/build/src/tools/msvc.jam "b/C:\\code\\msvc1.jam"
index b6276bb..b541abb 100644
--- a/tools/build/src/tools/msvc.jam
+++ b/tools/build/src/tools/msvc.jam
@@ -1154,7 +1154,15 @@ local rule generate-setup-cmd ( version : command : parent : options * : cpu : g
}
else
{
- if [ MATCH "(14.[34])" : $(version) ]
+ if [ MATCH "(14.5)" : $(version) ]
+ {
+ if $(.debug-configuration)
+ {
+ ECHO "notice: [generate-setup-cmd] $(version) is 14.5" ;
+ }
+ parent = [ path.native [ path.join $(parent) "..\\..\\..\\..\\..\\Auxiliary\\Build" ] ] ;
+ }
+ else if [ MATCH "(14.[34])" : $(version) ]
{
if $(.debug-configuration)
{
@@ -1340,7 +1348,11 @@ local rule configure-really ( version ? : options * )
# version from the path.
# FIXME: We currently detect both Microsoft Visual Studio 9.0 and
# 9.0express as 9.0 here.
- if [ MATCH "(MSVC\\\\14.[34])" : $(command) ]
+ if [ MATCH "(MSVC\\\\14.5)" : $(command) ]
+ {
+ version = 14.5 ;
+ }
+ else if [ MATCH "(MSVC\\\\14.[34])" : $(command) ]
{
version = 14.3 ;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment