diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2021-05-17 10:42:57 -0700 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2021-09-24 18:48:48 -0700 |
| commit | 30202a24021587b7d7ddffd8312eb5b425b3e273 (patch) | |
| tree | 8b03d4b62f0b35a520f8f5ef859df7156cd62395 /mesonbuild/compilers/__init__.py | |
| parent | f0a7b6e7c6bf97b22f3e5f1d600717ac7ba4162f (diff) | |
| download | meson-30202a24021587b7d7ddffd8312eb5b425b3e273.tar.gz | |
compilers/rust: Add support for clippy
Clippy is a compiler wrapper for rust that provides an extra layer of
linting. It's quite popular, but unfortunately doesn't provide the
output of the compiler that it's wrapping in it's output, so we don't
detect that clippy is rustc. This small patch adds a new compiler class
(that is the Rustc class with a different id) and the necessary logic to
detect that clippy is in fact rustc)
Fixes: #8767
Diffstat (limited to 'mesonbuild/compilers/__init__.py')
| -rw-r--r-- | mesonbuild/compilers/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/compilers/__init__.py b/mesonbuild/compilers/__init__.py index 8c5275c91..98b0b5f27 100644 --- a/mesonbuild/compilers/__init__.py +++ b/mesonbuild/compilers/__init__.py @@ -112,6 +112,7 @@ __all__ = [ 'PGICPPCompiler', 'PGIFortranCompiler', 'RustCompiler', + 'ClippyRustCompiler', 'CcrxCCompiler', 'CcrxCPPCompiler', 'Xc16CCompiler', @@ -241,7 +242,7 @@ from .objcpp import ( ClangObjCPPCompiler, GnuObjCPPCompiler, ) -from .rust import RustCompiler +from .rust import RustCompiler, ClippyRustCompiler from .swift import SwiftCompiler from .vala import ValaCompiler from .mixins.visualstudio import VisualStudioLikeCompiler |
