diff options
author | Niklas Claesson <nicke.claesson@gmail.com> | 2018-06-13 21:51:32 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-06-21 00:56:30 +0300 |
commit | 9620755ff7db9c2614ea1929fcc95bec22734cd0 (patch) | |
tree | 1b9b2bac7b6072ead8062ca756e8dce35b8e4b45 /mesonbuild/mesonmain.py | |
parent | 7140afc0a86f2aae0689617fca985ef209a7c097 (diff) | |
download | meson-9620755ff7db9c2614ea1929fcc95bec22734cd0.zip meson-9620755ff7db9c2614ea1929fcc95bec22734cd0.tar.gz meson-9620755ff7db9c2614ea1929fcc95bec22734cd0.tar.bz2 |
Print default option values that don't match the current value
Diffstat (limited to 'mesonbuild/mesonmain.py')
-rw-r--r-- | mesonbuild/mesonmain.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mesonbuild/mesonmain.py b/mesonbuild/mesonmain.py index a4406be..b70fd61 100644 --- a/mesonbuild/mesonmain.py +++ b/mesonbuild/mesonmain.py @@ -141,6 +141,11 @@ class MesonApp: profile.runctx('intr.run()', globals(), locals(), filename=fname) else: intr.run() + # 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))) 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 |