diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2022-04-13 09:35:52 -0400 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2022-04-30 15:01:28 -0400 |
commit | 18bec0d3e31884dc493a03741b2ec9fef17047ee (patch) | |
tree | 664758d944e498fdb2e3d4eddd135325be7d3e85 /mesonbuild/environment.py | |
parent | c08ee0f7bc310c9721247ba7398ec8f651ceac06 (diff) | |
download | meson-18bec0d3e31884dc493a03741b2ec9fef17047ee.zip meson-18bec0d3e31884dc493a03741b2ec9fef17047ee.tar.gz meson-18bec0d3e31884dc493a03741b2ec9fef17047ee.tar.bz2 |
pkgconfig: Use EnvironmentVariables to build PKG_CONFIG_* env
The new get_env() method that returns an EnvironmentVariables object
will be needed in next commit that will pass it to CustomTarget.
This has the side effect to use the proper os specific path separator
instead of hardcoding `:`. It is the obvious right thing to do here, but
has caused issues in the past. Hopefully issues have been fixed in the
meantime. If not, better deal with fallouts than keep doing the wrong
thing forever.
Diffstat (limited to 'mesonbuild/environment.py')
-rw-r--r-- | mesonbuild/environment.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py index 5e8575a..32141c9 100644 --- a/mesonbuild/environment.py +++ b/mesonbuild/environment.py @@ -654,7 +654,7 @@ class Environment: _p_env = re.split(r':|;', p_env) p_list = list(mesonlib.OrderedSet(_p_env)) elif keyname == 'pkg_config_path': - p_list = list(mesonlib.OrderedSet(p_env.split(':'))) + p_list = list(mesonlib.OrderedSet(p_env.split(os.pathsep))) else: p_list = split_args(p_env) p_list = [e for e in p_list if e] # filter out any empty elements |