diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2021-09-30 11:54:43 -0400 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2021-10-10 23:15:18 +0300 |
commit | 928078982c8643bffd95a8da06a1b4494fe87e2b (patch) | |
tree | 1e8e50892e5f329927d9196cea85e66801c1af03 /mesonbuild/msetup.py | |
parent | 31bea202c9dc9d288d787f0073f0e221971669ba (diff) | |
download | meson-928078982c8643bffd95a8da06a1b4494fe87e2b.zip meson-928078982c8643bffd95a8da06a1b4494fe87e2b.tar.gz meson-928078982c8643bffd95a8da06a1b4494fe87e2b.tar.bz2 |
Add --vsenv command line option and active VS only when needed
Diffstat (limited to 'mesonbuild/msetup.py')
-rw-r--r-- | mesonbuild/msetup.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mesonbuild/msetup.py b/mesonbuild/msetup.py index a7d28dd..7f2f7ed 100644 --- a/mesonbuild/msetup.py +++ b/mesonbuild/msetup.py @@ -50,6 +50,10 @@ def add_arguments(parser: argparse.ArgumentParser) -> None: default=[], action='append', help='File describing cross compilation environment.') + parser.add_argument('--vsenv', action='store_true', + help='Setup Visual Studio environment even when other compilers are found, ' + + 'abort if Visual Studio is not found. This option has no effect on other ' + + 'platforms than Windows. Defaults to True when using "vs" backend.') parser.add_argument('-v', '--version', action='version', version=coredata.version) parser.add_argument('--profile-self', action='store_true', dest='profile', |