diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2015-08-27 00:25:04 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2015-08-27 01:07:29 +0300 |
commit | 6cca79b052b75bf174c2e482cc5d3e1a6cec4b02 (patch) | |
tree | aaa12cf651414e2986410533ba06717d6834c0dc /meson.py | |
parent | f32db9afa27992df1e40fece4ffd40fd5f3768ae (diff) | |
download | meson-6cca79b052b75bf174c2e482cc5d3e1a6cec4b02.zip meson-6cca79b052b75bf174c2e482cc5d3e1a6cec4b02.tar.gz meson-6cca79b052b75bf174c2e482cc5d3e1a6cec4b02.tar.bz2 |
Added multiple selectable warning levels.
Diffstat (limited to 'meson.py')
-rwxr-xr-x | meson.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -28,6 +28,7 @@ parser = argparse.ArgumentParser() backendlist = ['ninja', 'vs2010', 'xcode'] build_types = ['plain', 'debug', 'debugoptimized', 'release'] +warning_levels = ['1', '2', '3'] if mesonlib.is_windows(): def_prefix = 'c:/' @@ -62,6 +63,8 @@ parser.add_argument('--unity', action='store_true', dest='unity', default=False, help='unity build') parser.add_argument('--werror', action='store_true', dest='werror', default=False,\ help='Treat warnings as errors') +parser.add_argument('--warnlevel', default='1', dest='warning_level', choices=warning_levels,\ + help='Level of compiler warnings to use (larger is more)') parser.add_argument('--cross-file', default=None, dest='cross_file', help='file describing cross compilation environment') parser.add_argument('-D', action='append', dest='projectoptions', default=[], |