aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mdevenv.py
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2023-04-25 14:47:37 -0400
committerEli Schwartz <eschwartz@archlinux.org>2023-07-19 18:31:37 -0400
commit7afc69254d6b7240406cb1112ab57355bd9d32cd (patch)
tree6246648038a69ba8e3ce48841eeb37bcad00e7d9 /mesonbuild/mdevenv.py
parentcfc3960956f98aff74b118ce3de89a40ef3496c1 (diff)
downloadmeson-7afc69254d6b7240406cb1112ab57355bd9d32cd.zip
meson-7afc69254d6b7240406cb1112ab57355bd9d32cd.tar.gz
meson-7afc69254d6b7240406cb1112ab57355bd9d32cd.tar.bz2
fix implicit_reexport issues and enforce them going forward
This detects cases where module A imports a function from B, and C imports that same function from A instead of B. It's not part of the API contract of A, and causes innocent refactoring to break things.
Diffstat (limited to 'mesonbuild/mdevenv.py')
-rw-r--r--mesonbuild/mdevenv.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/mdevenv.py b/mesonbuild/mdevenv.py
index 9c29847..46b1b60 100644
--- a/mesonbuild/mdevenv.py
+++ b/mesonbuild/mdevenv.py
@@ -8,7 +8,7 @@ import itertools
from pathlib import Path
from . import build, minstall
-from .mesonlib import (MesonException, is_windows, setup_vsenv, OptionKey,
+from .mesonlib import (EnvironmentVariables, MesonException, is_windows, setup_vsenv, OptionKey,
get_wine_shortpath, MachineChoice)
from . import mlog
@@ -55,7 +55,7 @@ def reduce_winepath(env: T.Dict[str, str]) -> None:
mlog.log('Meson detected wine and has set WINEPATH accordingly')
def get_env(b: build.Build, dump_fmt: T.Optional[str]) -> T.Tuple[T.Dict[str, str], T.Set[str]]:
- extra_env = build.EnvironmentVariables()
+ extra_env = EnvironmentVariables()
extra_env.set('MESON_DEVENV', ['1'])
extra_env.set('MESON_PROJECT_NAME', [b.project_name])