aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mesonmain.py
diff options
context:
space:
mode:
authorMartin Hostettler <textshell@uchuujin.de>2018-12-29 12:53:23 +0100
committerJussi Pakkanen <jpakkane@gmail.com>2019-01-07 22:55:45 +0200
commit768fa502ac6aed64ffd3dfc6952ac56b295e6648 (patch)
tree30616f93e95980db5683b941186cfc9428a174d5 /mesonbuild/mesonmain.py
parent3232f780d8c3baba0cbca3f9fea18d1a722bf957 (diff)
downloadmeson-768fa502ac6aed64ffd3dfc6952ac56b295e6648.zip
meson-768fa502ac6aed64ffd3dfc6952ac56b295e6648.tar.gz
meson-768fa502ac6aed64ffd3dfc6952ac56b295e6648.tar.bz2
Add new meson.py unstable-coredata subcommand.
This adds a hidden option to dump the current otherwise hidden peristant state in coredata.dat. This interface is unstable as meson has no compatibility promises about coredata.dat.
Diffstat (limited to 'mesonbuild/mesonmain.py')
-rw-r--r--mesonbuild/mesonmain.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/mesonbuild/mesonmain.py b/mesonbuild/mesonmain.py
index c11d044..7236d1a 100644
--- a/mesonbuild/mesonmain.py
+++ b/mesonbuild/mesonmain.py
@@ -20,7 +20,7 @@ import argparse
from . import mesonlib
from . import mlog
-from . import mconf, minit, minstall, mintro, msetup, mtest, rewriter, msubprojects
+from . import mconf, minit, minstall, mintro, msetup, mtest, rewriter, msubprojects, munstable_coredata
from .mesonlib import MesonException
from .environment import detect_msys2_arch
from .wrap import wraptool
@@ -57,6 +57,8 @@ class CommandLineParser:
help=argparse.SUPPRESS)
self.add_command('runpython', self.add_runpython_arguments, self.run_runpython_command,
help=argparse.SUPPRESS)
+ self.add_command('unstable-coredata', munstable_coredata.add_arguments, munstable_coredata.run,
+ help=argparse.SUPPRESS)
def add_command(self, name, add_arguments_func, run_func, help):
# FIXME: Cannot have hidden subparser: