summaryrefslogtreecommitdiff
path: root/mesonbuild/modules/rust.py
diff options
context:
space:
mode:
authorXavier Claessens <xclaessens@netflix.com>2025-10-13 15:49:24 -0400
committerXavier Claessens <xclaesse@gmail.com>2025-10-15 12:15:39 -0400
commit569fe981b08f8fa38ff3533651ceff414decadf4 (patch)
tree75dc96f5ba8fce8bbc8da7d0ce027b573ed20bce /mesonbuild/modules/rust.py
parentbd33265b04ca609afe6bb895453c5757bbbbb27d (diff)
downloadmeson-569fe981b08f8fa38ff3533651ceff414decadf4.tar.gz
Add common ABC for ExternalProgram and LocalProgram
Diffstat (limited to 'mesonbuild/modules/rust.py')
-rw-r--r--mesonbuild/modules/rust.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/mesonbuild/modules/rust.py b/mesonbuild/modules/rust.py
index 3d0ad771e..2c56a860e 100644
--- a/mesonbuild/modules/rust.py
+++ b/mesonbuild/modules/rust.py
@@ -376,10 +376,7 @@ class RustModule(ExtensionModule):
if self._bindgen_bin is None:
self._bindgen_bin = state.find_program('bindgen', wanted=kwargs['bindgen_version'])
if self._bindgen_rust_target is not None:
- # ExternalCommand.command's type is bonkers
- _, _, err = mesonlib.Popen_safe(
- T.cast('T.List[str]', self._bindgen_bin.get_command()) +
- ['--rust-target', self._bindgen_rust_target])
+ _, _, err = mesonlib.Popen_safe(self._bindgen_bin.get_command() + ['--rust-target', self._bindgen_rust_target])
# < 0.71: Sometimes this is "invalid Rust target" and
# sometimes "invalid # rust target"
# >= 0.71: error: invalid value '...' for '--rust-target <RUST_TARGET>': "..." is not a valid Rust target, accepted values are of the form ...