diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2021-01-19 10:12:38 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2021-01-19 10:12:38 -0800 |
commit | 3ae115b57ad7f8eca09c03f5bd6bf65604dcaf59 (patch) | |
tree | 7e2c18c073c0b6d2463114d4d6ee9ce5633fd57a /mesonbuild/modules | |
parent | c64d4070763b2daf82a50a7b4f5b130b2bb91062 (diff) | |
download | meson-3ae115b57ad7f8eca09c03f5bd6bf65604dcaf59.zip meson-3ae115b57ad7f8eca09c03f5bd6bf65604dcaf59.tar.gz meson-3ae115b57ad7f8eca09c03f5bd6bf65604dcaf59.tar.bz2 |
Replace NinjaBackend is_rust_target with build.uses_rust
we have two functions to do the exact same thing, and they're basically
implemented the same way. Instead, let's just use the BuildTarget one,
as it's more generally available.
Diffstat (limited to 'mesonbuild/modules')
-rw-r--r-- | mesonbuild/modules/unstable_rust.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/modules/unstable_rust.py b/mesonbuild/modules/unstable_rust.py index 02369b6..d215376 100644 --- a/mesonbuild/modules/unstable_rust.py +++ b/mesonbuild/modules/unstable_rust.py @@ -85,7 +85,7 @@ class RustModule(ExtensionModule): base_target: BuildTarget = unholder(args[1]) if not isinstance(base_target, BuildTarget): raise InterpreterException('Second positional argument to rustmod.test() must be a library or executable') - if not base_target.get_using_rustc(): + if not base_target.uses_rust(): raise InterpreterException('Second positional argument to rustmod.test() must be a rust based target') extra_args = stringlistify(kwargs.get('args', [])) |