aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mesonmain.py
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2021-05-28 13:03:41 -0400
committerXavier Claessens <xclaesse@gmail.com>2021-05-28 17:34:25 -0400
commit25fa2d4f7ba0978d8a224cf2cba3d697a3bbfb3d (patch)
tree322fd8fa4f07b31501a0bea49ebe99dfbbb552f2 /mesonbuild/mesonmain.py
parenta9b65b421e09cabdb5c383b69b32e2787fbeadc1 (diff)
downloadmeson-25fa2d4f7ba0978d8a224cf2cba3d697a3bbfb3d.zip
meson-25fa2d4f7ba0978d8a224cf2cba3d697a3bbfb3d.tar.gz
meson-25fa2d4f7ba0978d8a224cf2cba3d697a3bbfb3d.tar.bz2
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.
Diffstat (limited to 'mesonbuild/mesonmain.py')
-rw-r--r--mesonbuild/mesonmain.py5
1 files changed, 4 insertions, 1 deletions
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