diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2016-03-16 21:55:03 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2016-03-16 21:55:03 +0200 |
commit | 19046fd8543c2c1c7b8cfc1aa6fef11741f3fc51 (patch) | |
tree | bbeb0676bbfabfb208b0ad2438c62b5cfcb0d3b0 /mesonbuild/mconf.py | |
parent | a3004652eaa8eef877ccf009e7a6ec8e32ad3475 (diff) | |
download | meson-19046fd8543c2c1c7b8cfc1aa6fef11741f3fc51.zip meson-19046fd8543c2c1c7b8cfc1aa6fef11741f3fc51.tar.gz meson-19046fd8543c2c1c7b8cfc1aa6fef11741f3fc51.tar.bz2 |
Added new base options and some sample opts for gcc.
Diffstat (limited to 'mesonbuild/mconf.py')
-rw-r--r-- | mesonbuild/mconf.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mesonbuild/mconf.py b/mesonbuild/mconf.py index 03cbe55..7cbfa6b 100644 --- a/mesonbuild/mconf.py +++ b/mesonbuild/mconf.py @@ -94,6 +94,9 @@ class Conf: elif k in self.coredata.compiler_options: tgt = self.coredata.compiler_options[k] tgt.set_value(v) + elif k in self.coredata.base_options: + tgt = self.coredata.base_options[k] + tgt.set_value(v) elif k.endswith('linkargs'): lang = k[:-8] if not lang in self.coredata.external_link_args: @@ -131,6 +134,17 @@ class Conf: carr.append(['default_library', 'Default library type', self.coredata.get_builtin_option('default_library'), libtypelist]) self.print_aligned(carr) print('') + print('Base options:') + okeys = sorted(self.coredata.base_options.keys()) + if len(okeys) == 0: + print(' No base options\n') + else: + coarr = [] + for k in okeys: + o = self.coredata.base_options[k] + coarr.append([k, o.description, o.value, '']) + self.print_aligned(coarr) + print('') print('Compiler arguments:') for (lang, args) in self.coredata.external_args.items(): print(' ' + lang + 'args', str(args)) |