aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2023-04-27 13:27:46 -0400
committerXavier Claessens <xavier.claessens@collabora.com>2023-05-01 12:57:45 -0400
commit01949df4f62258941c128150ecdb424aa9286f45 (patch)
treeee2b74a756b86609bd5c3adfb7a22d4c70cb80ae /mesonbuild/modules
parent2dadc3ae5befade53c38c314344b7bd6f2aca3f4 (diff)
downloadmeson-01949df4f62258941c128150ecdb424aa9286f45.zip
meson-01949df4f62258941c128150ecdb424aa9286f45.tar.gz
meson-01949df4f62258941c128150ecdb424aa9286f45.tar.bz2
build: Don't do a deep copy of kwargs
It seems to only be used by the Rust module now, and it already does a copy.
Diffstat (limited to 'mesonbuild/modules')
-rw-r--r--mesonbuild/modules/rust.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/modules/rust.py b/mesonbuild/modules/rust.py
index bf1fd1d..6052ac4 100644
--- a/mesonbuild/modules/rust.py
+++ b/mesonbuild/modules/rust.py
@@ -139,7 +139,7 @@ class RustModule(ExtensionModule):
tkwargs['args'] = extra_args + ['--test', '--format', 'pretty']
tkwargs['protocol'] = 'rust'
- new_target_kwargs = base_target.kwargs.copy()
+ new_target_kwargs = base_target.original_kwargs.copy()
# Don't mutate the shallow copied list, instead replace it with a new
# one
new_target_kwargs['rust_args'] = new_target_kwargs.get('rust_args', []) + ['--test']