diff options
author | Pavel Hrdina <phrdina@redhat.com> | 2020-06-30 20:18:18 +0200 |
---|---|---|
committer | Pavel Hrdina <phrdina@redhat.com> | 2020-08-03 09:27:00 +0200 |
commit | af8611916a9b62fff841ddbdd575f95ba60f559a (patch) | |
tree | 8a753f656cb7b9d12b826ab9a1db3389bce03fc1 /scripts | |
parent | 16bdf27dc9b435d4016ea6204f61b69bde66a52c (diff) | |
download | libvirt-af8611916a9b62fff841ddbdd575f95ba60f559a.tar.gz |
meson: add runutf8 env vars and meson-python.sh script
With meson we have to use both env vars and wrapper script to run python
with correct LANG settings.
run_command() and test() have 'env' attribute so we can use it, but
custom_target() doesn't support that attribute. Environment variables
cannot by configured using 'command' because meson checks if the first
item in the list is executable so we have to use a wrapper.
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/meson-python.sh | 3 | ||||
-rw-r--r-- | scripts/meson.build | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/scripts/meson-python.sh b/scripts/meson-python.sh new file mode 100755 index 0000000000..9ba670fc1a --- /dev/null +++ b/scripts/meson-python.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +LC_ALL= LANG=C LC_CTYPE=en_US.UTF-8 "$@" diff --git a/scripts/meson.build b/scripts/meson.build index 941e40a091..5d3f0af479 100644 --- a/scripts/meson.build +++ b/scripts/meson.build @@ -18,6 +18,7 @@ scripts = [ 'header-ifdef.py', 'hvsupport.py', 'hyperv_wmi_generator.py', + 'meson-python.sh', 'mock-noinline.py', 'prohibit-duplicate-header.py', 'test-wrap-argv.py', |