aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Brunet <charles.brunet@optelgroup.com>2023-01-20 07:30:52 -0500
committerNirbheek Chauhan <nirbheek@centricular.com>2023-02-19 02:55:57 +0530
commita22a4ec1568b0cb3193b43e1f570e4ad95a99c0c (patch)
tree11c07b3124e75464d3c2eeea3bdbecd0de805cc6
parent6fcf56f38a130b07927ac8db215dd110450ffadd (diff)
downloadmeson-a22a4ec1568b0cb3193b43e1f570e4ad95a99c0c.zip
meson-a22a4ec1568b0cb3193b43e1f570e4ad95a99c0c.tar.gz
meson-a22a4ec1568b0cb3193b43e1f570e4ad95a99c0c.tar.bz2
devenv should import env vars from vsenv
-rw-r--r--mesonbuild/mdevenv.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/mesonbuild/mdevenv.py b/mesonbuild/mdevenv.py
index b25d73b..f4b9d7b 100644
--- a/mesonbuild/mdevenv.py
+++ b/mesonbuild/mdevenv.py
@@ -146,6 +146,7 @@ def run(options: argparse.Namespace) -> int:
b = build.load(options.builddir)
workdir = options.workdir or options.builddir
+ setup_vsenv(b.need_vsenv) # Call it before get_env to get vsenv vars as well
devenv, varnames = get_env(b, options.dump)
if options.dump:
if options.devcmd:
@@ -166,8 +167,6 @@ def run(options: argparse.Namespace) -> int:
install_data = minstall.load_install_data(str(privatedir / 'install.dat'))
write_gdb_script(privatedir, install_data, workdir)
- setup_vsenv(b.need_vsenv)
-
args = options.devcmd
if not args:
prompt_prefix = f'[{b.project_name}]'