diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2021-01-12 21:51:19 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2021-01-18 23:05:12 +0200 |
commit | 4513abe31960bd38e4769315b2d458457b6ff2d4 (patch) | |
tree | 5a885610aafe1d6f8eef53c89c836e54135beb7b /mesonbuild/mconf.py | |
parent | 9efcdba0d59a95d9c5ddd9c32f7870ac2183c5ea (diff) | |
download | meson-buildtyperemains.tar.gz |
Keep buildtype the same even if user changes debug and/or optimization.buildtyperemains
Diffstat (limited to 'mesonbuild/mconf.py')
-rw-r--r-- | mesonbuild/mconf.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mesonbuild/mconf.py b/mesonbuild/mconf.py index 686a3367d..5233d888c 100644 --- a/mesonbuild/mconf.py +++ b/mesonbuild/mconf.py @@ -243,6 +243,17 @@ class Conf: print('') print_default_values_warning() + self.print_nondefault_buildtype_options() + + def print_nondefault_buildtype_options(self): + mismatching = self.coredata.get_nondefault_buildtype_args() + if not mismatching: + return + print("\nThe following option(s) have a different value than the build type default\n") + print(f' current default') + for m in mismatching: + print(f'{m[0]:21}{m[1]:10}{m[2]:10}') + def run(options): coredata.parse_cmd_line_options(options) builddir = os.path.abspath(os.path.realpath(options.builddir)) |