meson: do not use python.full_path() unnecessarily
PATCH 1/1 meson: do not use python.full_path() unnecessarily
The "python" variable is an external program and can be passed directly to custom_target. This avoids the need to look it up multiple times, which was previously silent but is now explicit in recent Meson versions.
Signed-off-by Paolo Bonzini <[email protected]>
--- ui/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
ui/meson.build +1 -1
@@ -134,7 +134,7 @@ if have_system or xkbcommon.found() output: output, capture: true, input: files('keycodemapdb/data/keymaps.csv'), - command: [python.full_path(), files('keycodemapdb/tools/keymap-gen'), + command: [python, files('keycodemapdb/tools/keymap-gen'), 'code-map', '--lang', 'glib2', '--varname', 'qemu_input_map_@0@_to_@1@'.format(e[0], e[1]),
Signature · 1 line
2.31.1
Quoted 9 lines · Paolo Bonzini
The "python" variable is an external program and can be passed directly to
custom_target. This avoids the need to look it up multiple times, which was previously silent but is now explicit in recent Meson versions.Signed-off-by Paolo Bonzini <[email protected]>--- ui/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by Philippe Mathieu-Daudé <[email protected]>
Quoted 9 lines · Paolo Bonzini
The "python" variable is an external program and can be passed directly to
custom_target. This avoids the need to look it up multiple times, which was previously silent but is now explicit in recent Meson versions.Signed-off-by Paolo Bonzini <[email protected]>--- ui/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by Daniel P. Berrangé <[email protected]>
Regards,
Daniel
Signature · 3 lines
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|