libnm/meson.build: stop using env -i (just env)

env -i starts with an empty environment, which is undesired when the build
environment needs certain environment variables to function.

One such example is a custom PYTHONPATH, which gets dropped by env -i and
results in the nm-settings-docs.xml generator not finding the gi Python module.

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/478
This commit is contained in:
Michael Stapelberg 2020-04-25 20:36:57 +02:00 committed by Thomas Haller
parent dec1678fec
commit d4e33a0c2b

View file

@ -255,7 +255,7 @@ if enable_introspection
ld_library_path = meson.current_build_dir() + ld_library_path
generate_setting_docs_env = [
'env', '-i',
'env',
'GI_TYPELIB_PATH=' + gi_typelib_path,
'LD_LIBRARY_PATH=' + ld_library_path,
]