summaryrefslogtreecommitdiff
path: root/coredata.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 /coredata.py
parentf32db9afa27992df1e40fece4ffd40fd5f3768ae (diff)
downloadmeson-6cca79b052b75bf174c2e482cc5d3e1a6cec4b02.tar.gz
Added multiple selectable warning levels.
Diffstat (limited to 'coredata.py')
-rw-r--r--coredata.py29
1 files changed, 16 insertions, 13 deletions
diff --git a/coredata.py b/coredata.py
index 00703aa79..b74176dc9 100644
--- a/coredata.py
+++ b/coredata.py
@@ -17,19 +17,21 @@ import pickle, os, uuid
version = '0.26.0-research'
builtin_options = {'buildtype': True,
- 'strip': True,
- 'coverage': True,
- 'pch': True,
- 'unity': True,
- 'prefix': True,
- 'libdir' : True,
- 'bindir' : True,
- 'includedir' : True,
- 'datadir' : True,
- 'mandir' : True,
- 'localedir' : True,
- 'werror' : True,
- }
+ 'strip': True,
+ 'coverage': True,
+ 'pch': True,
+ 'unity': True,
+ 'prefix': True,
+ 'libdir' : True,
+ 'bindir' : True,
+ 'includedir' : True,
+ 'datadir' : True,
+ 'mandir' : True,
+ 'localedir' : True,
+ 'werror' : True,
+ 'warning_level': True,
+ }
+
# This class contains all data that must persist over multiple
# invocations of Meson. It is roughly the same thing as
# cmakecache.
@@ -54,6 +56,7 @@ class CoreData():
self.use_pch = options.use_pch
self.unity = options.unity
self.coverage = options.coverage
+ self.warning_level = options.warning_level
self.werror = options.werror
self.user_options = {}
self.external_args = {} # These are set from "the outside" with e.g. mesonconf