From 25fa2d4f7ba0978d8a224cf2cba3d697a3bbfb3d Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Fri, 28 May 2021 13:03:41 -0400 Subject: vsenv: Recommend using "meson compile" wrapper When meson has setup the VS environment, running ninja to build won't work, user should use meson wrapper to compile. --- mesonbuild/mesonmain.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mesonbuild/mesonmain.py') diff --git a/mesonbuild/mesonmain.py b/mesonbuild/mesonmain.py index c25e0e3..809ccdf 100644 --- a/mesonbuild/mesonmain.py +++ b/mesonbuild/mesonmain.py @@ -27,6 +27,8 @@ from .mesonlib import MesonException from .environment import detect_msys2_arch from .wrap import wraptool +need_setup_vsenv = False + bat_template = '''@ECHO OFF call "{}" @@ -111,7 +113,8 @@ def setup_vsenv(): continue k, v = bat_line.split('=', 1) os.environ[k] = v - + global need_setup_vsenv + need_setup_vsenv = True # Note: when adding arguments, please also add them to the completion -- cgit v1.1