aboutsummaryrefslogtreecommitdiff
path: root/meson.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2015-08-27 00:25:04 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2015-08-27 01:07:29 +0300
commit6cca79b052b75bf174c2e482cc5d3e1a6cec4b02 (patch)
treeaaa12cf651414e2986410533ba06717d6834c0dc /meson.py
parentf32db9afa27992df1e40fece4ffd40fd5f3768ae (diff)
downloadmeson-6cca79b052b75bf174c2e482cc5d3e1a6cec4b02.zip
meson-6cca79b052b75bf174c2e482cc5d3e1a6cec4b02.tar.gz
meson-6cca79b052b75bf174c2e482cc5d3e1a6cec4b02.tar.bz2
Added multiple selectable warning levels.
Diffstat (limited to 'meson.py')
-rwxr-xr-xmeson.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/meson.py b/meson.py
index db45609..8f08e6a 100755
--- a/meson.py
+++ b/meson.py
@@ -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=[],