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 msvs_toolset docstring #13146

Merged
merged 1 commit into from
Feb 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions conan/tools/microsoft/visual.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,11 +310,13 @@ def is_msvc_static_runtime(conanfile):


def msvs_toolset(conanfile):
""" Returns the corresponding platform toolset based on the compiler of the given conanfile.
In case no toolset is configured in the profile, it will return a toolset based on the
compiler version, otherwise, it will return the toolset from the profile.
When there is no compiler version neither toolset configured, it will return None
It supports Visual Studio, msvc and Intel.
"""
Returns the corresponding platform toolset based on the compiler of the given conanfile.
In case no toolset is configured in the profile, it will return a toolset based on the
compiler version, otherwise, it will return the toolset from the profile.
When there is no compiler version neither toolset configured, it will return None
It supports Visual Studio, msvc and Intel.

:param conanfile: Conanfile instance to access settings.compiler
:return: A toolset when compiler.version is valid or compiler.toolset is configured. Otherwise, None.
"""
Expand Down