diff options
author | Nicolas Schneider <nioncode+git@gmail.com> | 2019-01-05 22:12:02 +0100 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2019-01-06 19:41:24 -0500 |
commit | 3232f780d8c3baba0cbca3f9fea18d1a722bf957 (patch) | |
tree | 105cd5ec72000d7ed4d1dfe02e4d137bcbdc2648 /mesonbuild/msetup.py | |
parent | f658107a0e424ad3a9659a4b53f310dec9fae690 (diff) | |
download | meson-3232f780d8c3baba0cbca3f9fea18d1a722bf957.zip meson-3232f780d8c3baba0cbca3f9fea18d1a722bf957.tar.gz meson-3232f780d8c3baba0cbca3f9fea18d1a722bf957.tar.bz2 |
use same code for printing options in mconf and msetup
Also, options are now responsible for providing a suitable printable
representation of their value instead of handling this at the caller.
Diffstat (limited to 'mesonbuild/msetup.py')
-rw-r--r-- | mesonbuild/msetup.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mesonbuild/msetup.py b/mesonbuild/msetup.py index 402f756..67559a1 100644 --- a/mesonbuild/msetup.py +++ b/mesonbuild/msetup.py @@ -24,6 +24,7 @@ from . import environment, interpreter, mesonlib from . import build from . import mlog, coredata from . import mintro +from .mconf import make_lower_case from .mesonlib import MesonException def add_arguments(parser): @@ -192,8 +193,8 @@ class MesonApp: # Print all default option values that don't match the current value for def_opt_name, def_opt_value, cur_opt_value in intr.get_non_matching_default_options(): mlog.log('Option', mlog.bold(def_opt_name), 'is:', - mlog.bold(str(cur_opt_value)), - '[default: {}]'.format(str(def_opt_value))) + mlog.bold(make_lower_case(cur_opt_value.printable_value())), + '[default: {}]'.format(make_lower_case(def_opt_value))) try: dumpfile = os.path.join(env.get_scratch_dir(), 'build.dat') # We would like to write coredata as late as possible since we use the existence of |