From 3db969336f73366341413eac013a9ae4d9265221 Mon Sep 17 00:00:00 2001 From: Scott D Phillips Date: Fri, 11 Nov 2016 10:08:30 -0800 Subject: [PATCH] compilers: add werror flag for msvc --- mesonbuild/compilers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mesonbuild/compilers.py b/mesonbuild/compilers.py index bbe6a7292..78f2c34f8 100644 --- a/mesonbuild/compilers.py +++ b/mesonbuild/compilers.py @@ -1854,6 +1854,9 @@ class VisualStudioCCompiler(CCompiler): result.append(i) return result + def get_werror_args(self): + return ['/WX'] + def get_include_args(self, path, is_system): if path == '': path = '.'