hexagon: use env keyword argument to pass PYTHONPATH
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 9 Mar 2021 17:55:57 +0000 (18:55 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 5 Oct 2021 11:10:29 +0000 (13:10 +0200)
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

index 6fd9360b746eed335b85525e221559c56c3f90da..c6d858ffb26cd75064c6bc7d240fde02032c1212 100644 (file)
@@ -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)