summaryrefslogtreecommitdiff
path: root/coredata.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2015-09-04 23:51:38 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2015-09-04 23:51:38 +0300
commit70f4e388ca65b3f3381568c345e3bac3eb0551f3 (patch)
tree3d19c09e74eac34c915842ff51789c3b4874ccf8 /coredata.py
parent02185132d2c93f8fb3fd09595bd2dd539f59c0c9 (diff)
parentc7e367ac161d1b7faead7e2de99072ca135d0df8 (diff)
downloadmeson-70f4e388ca65b3f3381568c345e3bac3eb0551f3.tar.gz
Merge pull request #246 from mesonbuild/warnreorg
Added warning level option.
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