aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mdevenv.py
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2022-05-02 11:20:16 -0400
committerJussi Pakkanen <jpakkane@gmail.com>2022-05-04 00:16:32 +0300
commit5a34dcedf729ac449de97fe7d201c1ebc50cd1d4 (patch)
tree3b593491f687ee61a97e52f11dcae6db69364188 /mesonbuild/mdevenv.py
parent2f68aa21e87f451196bb050315e268cb38f200c5 (diff)
downloadmeson-5a34dcedf729ac449de97fe7d201c1ebc50cd1d4.zip
meson-5a34dcedf729ac449de97fe7d201c1ebc50cd1d4.tar.gz
meson-5a34dcedf729ac449de97fe7d201c1ebc50cd1d4.tar.bz2
devenv: Use PkgConfigDependency.get_env()
This ensures that PKG_CONFIG_PATH, PKG_CONFIG_LIBDIR and PKG_CONFIG_SYSROOT_DIR are also set properly.
Diffstat (limited to 'mesonbuild/mdevenv.py')
-rw-r--r--mesonbuild/mdevenv.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/mesonbuild/mdevenv.py b/mesonbuild/mdevenv.py
index 8ea50d5..27533e3 100644
--- a/mesonbuild/mdevenv.py
+++ b/mesonbuild/mdevenv.py
@@ -33,10 +33,6 @@ def get_env(b: build.Build, build_dir: str) -> T.Tuple[T.Dict[str, str], T.Set[s
extra_env.set('MESON_DEVENV', ['1'])
extra_env.set('MESON_PROJECT_NAME', [b.project_name])
- meson_uninstalled = Path(build_dir) / 'meson-uninstalled'
- if meson_uninstalled.is_dir():
- extra_env.prepend('PKG_CONFIG_PATH', [str(meson_uninstalled)])
-
env = os.environ.copy()
varnames = set()
for i in itertools.chain(b.devenv, {extra_env}):