Skip to content

Commit

Permalink
Fix msvc auto config version priority. (#317)
Browse files Browse the repository at this point in the history
When configuring all msvc toolsets we would configure the ones from the registry followed by known location versions. This had the effect of making msvc versions from the registry the default over the pathed ones. Since the newer releases, after 14.0, don't use the registry it meant that even if you had new ones it would pick 14.0 (or earlier) as the default. This change tries to register them with registry and pathed each. Which results in preserving the new-to-old ordering. Resulting in the newest being the default, as intended.
  • Loading branch information
grafikrobot authored Jun 3, 2023
1 parent 09d8d07 commit 1ae2e37
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tools/msvc.jam
Original file line number Diff line number Diff line change
Expand Up @@ -1075,6 +1075,10 @@ local rule auto-detect-toolset-versions ( )
register-configuration $(i) : [ path.native $(vc-path[1]) ] ;
}
}
else
{
register-configuration $(i) : [ default-path $(i) ] ;
}
}
}

Expand Down

0 comments on commit 1ae2e37

Please sign in to comment.