diff options
author | Sander Sweers <infirit@gmail.com> | 2018-03-04 19:26:45 +0100 |
---|---|---|
committer | Sander Sweers <infirit@gmail.com> | 2018-03-04 19:54:50 +0100 |
commit | 84d382f9638e1dd5db5c9d1d62224dcc123e8983 (patch) | |
tree | 1798afeaf96a68263a5d6216998dd5969803c3cb /mesonbuild/mconf.py | |
parent | f805f8e109f5a344b2edf2b62f66bd94aac31fc2 (diff) | |
download | meson-84d382f9638e1dd5db5c9d1d62224dcc123e8983.zip meson-84d382f9638e1dd5db5c9d1d62224dcc123e8983.tar.gz meson-84d382f9638e1dd5db5c9d1d62224dcc123e8983.tar.bz2 |
mconf: User newline instead of printing empty string
Diffstat (limited to 'mesonbuild/mconf.py')
-rw-r--r-- | mesonbuild/mconf.py | 25 |
1 files changed, 8 insertions, 17 deletions
diff --git a/mesonbuild/mconf.py b/mesonbuild/mconf.py index 8a78f3d..b33261e 100644 --- a/mesonbuild/mconf.py +++ b/mesonbuild/mconf.py @@ -130,8 +130,7 @@ class Conf: print('Core properties:') print(' Source dir', self.build.environment.source_dir) print(' Build dir ', self.build.environment.build_dir) - print('') - print('Core options:') + print('\nCore options:\n') carr = [] for key in ['buildtype', 'warning_level', 'werror', 'strip', 'unity', 'default_library']: carr.append({'name': key, @@ -139,7 +138,6 @@ class Conf: 'value': self.coredata.get_builtin_option(key), 'choices': coredata.get_builtin_option_choices(key)}) self.print_aligned(carr) - print('') bekeys = sorted(self.coredata.backend_options) if not bekeys: print(' No backend options\n') @@ -149,8 +147,7 @@ class Conf: o = self.coredata.backend_options[k] bearr.append({'name': k, 'descr': o.description, 'value': o.value, 'choices': ''}) self.print_aligned(bearr) - print('') - print('Base options:') + print('\nBase options:') okeys = sorted(self.coredata.base_options) if not okeys: print(' No base options\n') @@ -160,16 +157,13 @@ class Conf: o = self.coredata.base_options[k] coarr.append({'name': k, 'descr': o.description, 'value': o.value, 'choices': o.choices}) self.print_aligned(coarr) - print('') - print('Compiler arguments:') + print('\nCompiler arguments:') for (lang, args) in self.coredata.external_args.items(): print(' ' + lang + '_args', str(args)) - print('') - print('Linker args:') + print('\nLinker args:') for (lang, args) in self.coredata.external_link_args.items(): print(' ' + lang + '_link_args', str(args)) - print('') - print('Compiler options:') + print('\nCompiler options:') okeys = sorted(self.coredata.compiler_options) if not okeys: print(' No compiler options\n') @@ -179,8 +173,7 @@ class Conf: o = self.coredata.compiler_options[k] coarr.append({'name': k, 'descr': o.description, 'value': o.value, 'choices': ''}) self.print_aligned(coarr) - print('') - print('Directories:') + print('\nDirectories:') parr = [] for key in ['prefix', 'libdir', @@ -201,8 +194,7 @@ class Conf: 'value': self.coredata.get_builtin_option(key), 'choices': coredata.get_builtin_option_choices(key)}) self.print_aligned(parr) - print('') - print('Project options:') + print('\nProject options:') if not self.coredata.user_options: print(' This project does not have any options') else: @@ -221,8 +213,7 @@ class Conf: 'value': opt.value, 'choices': choices}) self.print_aligned(optarr) - print('') - print('Testing options:') + print('\nTesting options:') tarr = [] for key in ['stdsplit', 'errorlogs']: tarr.append({'name': key, |