[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 5/5] hexagon: use env keyword argument to pass PYTHONPATH
From: |
Paolo Bonzini |
Subject: |
[PULL 5/5] hexagon: use env keyword argument to pass PYTHONPATH |
Date: |
Sun, 14 Mar 2021 18:50:25 +0100 |
This feature is new in meson 0.57 and allows getting rid of the "env" wrapper.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
target/hexagon/meson.build | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/target/hexagon/meson.build b/target/hexagon/meson.build
index bb0b4fb621..aaeee11ac1 100644
--- a/target/hexagon/meson.build
+++ b/target/hexagon/meson.build
@@ -156,7 +156,8 @@ dectree_generated = custom_target(
'dectree_generated.h.inc',
output: 'dectree_generated.h.inc',
depends: [iset_py],
- command: ['env', 'PYTHONPATH=' + meson.current_build_dir(),
files('dectree.py'), '@OUTPUT@'],
+ env: {'PYTHONPATH': meson.current_build_dir()},
+ command: [python, files('dectree.py'), '@OUTPUT@'],
)
hexagon_ss.add(dectree_generated)
--
2.29.2
- [PULL 0/5] Meson version update, Paolo Bonzini, 2021/03/14
- [PULL 1/5] hexagon: do not specify executables as inputs, Paolo Bonzini, 2021/03/14
- [PULL 3/5] meson: bump submodule to 0.57.1, Paolo Bonzini, 2021/03/14
- [PULL 5/5] hexagon: use env keyword argument to pass PYTHONPATH,
Paolo Bonzini <=
- [PULL 2/5] hexagon: do not specify Python scripts as inputs, Paolo Bonzini, 2021/03/14
- [PULL 4/5] meson: switch minimum meson version to 0.57.0, Paolo Bonzini, 2021/03/14
- Re: [PULL 0/5] Meson version update, Peter Maydell, 2021/03/15