diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2022-02-19 18:17:28 +0200 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2022-03-09 18:02:04 -0500 |
commit | 04ef7ec45d2a6b1f008b8cb52314ae0e71f16fa3 (patch) | |
tree | dbfee8994d8cd06e8badb2fa1953265f8b997aa7 /mesonbuild/mesonmain.py | |
parent | 139020c2fc83c3e46d8f474bbda90fe1493e1d27 (diff) | |
download | meson-04ef7ec45d2a6b1f008b8cb52314ae0e71f16fa3.zip meson-04ef7ec45d2a6b1f008b8cb52314ae0e71f16fa3.tar.gz meson-04ef7ec45d2a6b1f008b8cb52314ae0e71f16fa3.tar.bz2 |
Add new env2mfile command.
Diffstat (limited to 'mesonbuild/mesonmain.py')
-rw-r--r-- | mesonbuild/mesonmain.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mesonbuild/mesonmain.py b/mesonbuild/mesonmain.py index 93cb8b0..89816ec 100644 --- a/mesonbuild/mesonmain.py +++ b/mesonbuild/mesonmain.py @@ -30,7 +30,7 @@ from . import mconf, mdist, minit, minstall, mintro, msetup, mtest, rewriter, ms from .mesonlib import MesonException, MesonBugException from .environment import detect_msys2_arch from .wrap import wraptool - +from .scripts import env2mfile # Note: when adding arguments, please also add them to the completion # scripts in $MESONSRC/data/shell-completions/ @@ -70,6 +70,8 @@ class CommandLineParser: help_msg='Build the project') self.add_command('devenv', mdevenv.add_arguments, mdevenv.run, help_msg='Run commands in developer environment') + self.add_command('env2mfile', env2mfile.add_arguments, env2mfile.run, + help_msg='Convert current environment to a cross or native file') # Hidden commands self.add_command('runpython', self.add_runpython_arguments, self.run_runpython_command, |