diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2024-06-30 13:16:42 +0300 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2024-07-11 11:53:39 +0300 |
| commit | 0d7bb776e2d97d406b726b90090bbfa8df13232b (patch) | |
| tree | 78817e1840f0741439871682b3c25a1e40a3067f /mesonbuild/minit.py | |
| parent | c2552527fb2f607052c7aed633b67dbb19f06e38 (diff) | |
| download | meson-0d7bb776e2d97d406b726b90090bbfa8df13232b.tar.gz | |
Move OptionKey in the option source file.
Diffstat (limited to 'mesonbuild/minit.py')
| -rw-r--r-- | mesonbuild/minit.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/minit.py b/mesonbuild/minit.py index cb5de231e..70f184d02 100644 --- a/mesonbuild/minit.py +++ b/mesonbuild/minit.py @@ -20,6 +20,7 @@ from mesonbuild.coredata import FORBIDDEN_TARGET_NAMES from mesonbuild.environment import detect_ninja from mesonbuild.templates.mesontemplates import create_meson_build from mesonbuild.templates.samplefactory import sample_generator +from mesonbuild.options import OptionKey if T.TYPE_CHECKING: import argparse @@ -192,7 +193,7 @@ def run(options: Arguments) -> int: raise SystemExit b = build.load(options.builddir) - need_vsenv = T.cast('bool', b.environment.coredata.get_option(mesonlib.OptionKey('vsenv'))) + need_vsenv = T.cast('bool', b.environment.coredata.get_option(OptionKey('vsenv'))) vsenv_active = mesonlib.setup_vsenv(need_vsenv) if vsenv_active: mlog.log(mlog.green('INFO:'), 'automatically activated MSVC compiler environment') |
