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
- allow vcvars for clang-cl #3574
Conversation
51b0a2a
to
6b59c11
Compare
Signed-off-by: SSE4 <tomskside@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My only concern is the breaking behavior, but prior to this PR, passing a non-visual studio compiler with whatever version could have unexpected results. So for me is ok.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will add also a test mocking the function vs_installation_path
in order to test the new if/else
clauses.
…the latest_visual_studio_version_installed Signed-off-by: SSE4 <tomskside@gmail.com>
Signed-off-by: SSE4 <tomskside@gmail.com>
Signed-off-by: SSE4 <tomskside@gmail.com>
Signed-off-by: SSE4 <tomskside@gmail.com>
Signed-off-by: SSE4 <tomskside@gmail.com>
Pending to open a PR in the docs with:
|
Signed-off-by: SSE4 <tomskside@gmail.com>
made |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see the value of having a _system_registry_key() function and it will come handy in some other detections and checks but we have to reduce the complexity of its usage
Signed-off-by: SSE4 <tomskside@gmail.com>
Signed-off-by: SSE4 <tomskside@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just small changes required 😃
Signed-off-by: SSE4 <tomskside@gmail.com>
Try/catch for OpenKey and for QueryValue
Signed-off-by: SSE4 <tomskside@gmail.com>
* - allow vcvars for clang-cl Signed-off-by: SSE4 <tomskside@gmail.com> * - move _visual_compiler_last from detect.py into win.py, renaming to the latest_visual_studio_version_installed Signed-off-by: SSE4 <tomskside@gmail.com> * - look from the latest to oldest Signed-off-by: SSE4 <tomskside@gmail.com> * - add negative test case Signed-off-by: SSE4 <tomskside@gmail.com> * - handle latest_visual_studio_version_installed returns None Signed-off-by: SSE4 <tomskside@gmail.com> * - add system_registry_key context manager, ensure key is always closed Signed-off-by: SSE4 <tomskside@gmail.com> * - make system_registry_key private Signed-off-by: SSE4 <tomskside@gmail.com> * - return just Visual Studio version Signed-off-by: SSE4 <tomskside@gmail.com> * - simplify _system_registry_key Signed-off-by: SSE4 <tomskside@gmail.com> * - remove decorator Signed-off-by: SSE4 <tomskside@gmail.com> * try/catch for openKey and for QueryValue * - set detected compiler tuple properly Signed-off-by: SSE4 <tomskside@gmail.com>
Signed-off-by: SSE4 tomskside@gmail.com
related to the:
#1839
https://github.com/conan-community/community/issues/43
develop
branch, documenting this one. Also adding a description of the changes in thechangelog.rst
file. https://github.com/conan-io/docsChangelog: Feature: Allow
vcvars
to run ifclang-cl
compiler is detected.