Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix msvc auto config version priority. #317

Merged
merged 1 commit into from
Jun 3, 2023
Merged

Conversation

grafikrobot
Copy link
Member

Proposed changes

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.

Types of changes

  • Bugfix (non-breaking change which fixes an issue)

Checklist

  • I searched the discussions
  • I searched the closed and open issues
  • I read the contribution guidelines
  • I added myself to the copyright attributions for significant changes
  • I checked that tests pass locally with my changes

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.
@grafikrobot grafikrobot added bug Something isn't working backport version/4.10.0 Backport to release 4.10.0 labels Jun 3, 2023
@grafikrobot grafikrobot self-assigned this Jun 3, 2023
@grafikrobot grafikrobot merged commit 1ae2e37 into main Jun 3, 2023
@grafikrobot grafikrobot deleted the grafikrobot-patch-1 branch June 3, 2023 16:38
@grafikrobot
Copy link
Member Author

/backport

@github-actions
Copy link
Contributor

github-actions bot commented Jun 3, 2023

Successfully created backport PR for version/4.10.0:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport version/4.10.0 Backport to release 4.10.0 bug Something isn't working
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant