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

[feature] Recognize Clang CL on Windows as tool method #12175

Closed
1 task done
uilianries opened this issue Sep 22, 2022 · 1 comment
Closed
1 task done

[feature] Recognize Clang CL on Windows as tool method #12175

uilianries opened this issue Sep 22, 2022 · 1 comment

Comments

@uilianries
Copy link
Member

uilianries commented Sep 22, 2022

Just like is_msvc, usually, in CCI, we need to use the follow idiom to check when running clang-cl:

@property
def _is_clang_cl(self)
    return (self.settings.os == "Windows" and self.settings.compiler == "clang") or \
            self.settings.get_safe("compiler.toolset") == "ClangCL"

It would be great internalizing it as part of conan.tools.microsoft so we no longer need to copy/past that method.

You can find its usage by the follow search: https://github.com/conan-io/conan-center-index/search?q=_is_clang_cl

uilianries added a commit to uilianries/conan that referenced this issue Oct 4, 2022
Signed-off-by: Uilian Ries <uilianries@gmail.com>
@uilianries
Copy link
Member Author

The feature will not be merged.

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 a pull request may close this issue.

1 participant