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

Add a warning if msvc config cache may be outdated. #3546

Merged
merged 2 commits into from Feb 12, 2020

Conversation

mwichmann
Copy link
Collaborator

If we didn't find cl.exe in the final check in msvc_setup_env(), issue a different warning if config caching is enabled. If it is, there's a decent chance we've found cl.exe in the past, meaning
the cache is probably out of date - entries are indexed by path to the bat file+arg, whereas an msvc update may bump a version number in the path and the old path won't be valid: a cached path entry could look like this:

"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.24.28314\\bin\\HostX64\\x64",

and the .28314 could be changed in an update.

Signed-off-by: Mats Wichmann mats@linux.com

Contributor Checklist:

  • I have created a new test or updated the unit tests to cover the new/changed functionality.
  • I have updated master/src/CHANGES.txt directory (and read the README.txt in that directory)
  • I have updated the appropriate documentation

src/CHANGES.txt Outdated Show resolved Hide resolved
If we didn't find cl.exe in the final check in msvc_setup_env(),
issue a different warning if config caching is enabled. If it is,
there's a decent chance we've found cl.exe in the past, meaning
the cache is probably out of date - entries are indexed by path
to the bat file+arg, whereas an msvc update may bump a version
number in the path and the old path won't be valid: a cached
path entry could look like this:

"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.24.28314\\bin\\HostX64\\x64",

and the .28314 could be changed in an update.

Signed-off-by: Mats Wichmann <mats@linux.com>
Be more clear about the msvc config-cache issue being fixed.

Signed-off-by: Mats Wichmann <mats@linux.com>
@bdbaddog bdbaddog merged commit 882e40b into SCons:master Feb 12, 2020
@mwichmann mwichmann deleted the warn-cache branch March 9, 2020 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants