Skip to content

Commit

Permalink
Fix msvs_toolset docstring (#13146)
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
czoido authored Feb 17, 2023
1 parent 11b0115 commit f82624b
Showing 1 changed file with 7 additions and 5 deletions.
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

0 comments on commit f82624b

Please sign in to comment.