diff options
| author | Xavier Claessens <xclaesse@gmail.com> | 2018-09-05 10:36:42 -0400 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-09-05 10:36:42 -0400 | 
| commit | b3a35f92b4955120e142e34f8a4f0afd348e2bcb (patch) | |
| tree | 90f842fcff5569c64194f766910cc7d6ce9ed606 /mesonbuild/mesonmain.py | |
| parent | 226eaba369c3c7d1d4efd4e766855e3cbd6c688c (diff) | |
| parent | ef231d3edd01df4d3e0f55ccc6f1c683f1bb112f (diff) | |
| download | meson-b3a35f92b4955120e142e34f8a4f0afd348e2bcb.tar.gz | |
Merge pull request #4006 from xclaesse/fatal-warnings
Add --fatal-meson-warnings command line option
Diffstat (limited to 'mesonbuild/mesonmain.py')
| -rw-r--r-- | mesonbuild/mesonmain.py | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/mesonbuild/mesonmain.py b/mesonbuild/mesonmain.py index 7dddb58e4..b150731a0 100644 --- a/mesonbuild/mesonmain.py +++ b/mesonbuild/mesonmain.py @@ -41,6 +41,8 @@ def create_parser():                     help='Special wrap mode to use')      p.add_argument('--profile-self', action='store_true', dest='profile',                     help=argparse.SUPPRESS) +    p.add_argument('--fatal-meson-warnings', action='store_true', dest='fatal_warnings', +                   help='Make all Meson warnings fatal')      p.add_argument('builddir', nargs='?', default=None)      p.add_argument('sourcedir', nargs='?', default=None)      return p @@ -110,7 +112,7 @@ class MesonApp:      def generate(self):          env = environment.Environment(self.source_dir, self.build_dir, self.options) -        mlog.initialize(env.get_log_dir()) +        mlog.initialize(env.get_log_dir(), self.options.fatal_warnings)          if self.options.profile:              mlog.set_timestamp_start(time.monotonic())          with mesonlib.BuildDirLock(self.build_dir):  | 
