aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhairul Azhar Kasmiran <kazarmy@gmail.com>2022-04-16 20:51:52 +0800
committerJussi Pakkanen <jpakkane@gmail.com>2022-05-06 23:09:52 +0300
commit6b7bc608b78f28c0508f6d61f3edbb958708e7d8 (patch)
treeac3634c36e1a18dde95d1231a6b5d975dc35c2f5
parentf9200ca8f7429d614dcb8c4144269461c6a7d9d9 (diff)
downloadmeson-6b7bc608b78f28c0508f6d61f3edbb958708e7d8.zip
meson-6b7bc608b78f28c0508f6d61f3edbb958708e7d8.tar.gz
meson-6b7bc608b78f28c0508f6d61f3edbb958708e7d8.tar.bz2
compiler.has_argument: Add `-Werror=unknown-warning-option` to clang-cl cmd line
-rw-r--r--mesonbuild/compilers/mixins/visualstudio.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/compilers/mixins/visualstudio.py b/mesonbuild/compilers/mixins/visualstudio.py
index 0f2db73..0ad4d85 100644
--- a/mesonbuild/compilers/mixins/visualstudio.py
+++ b/mesonbuild/compilers/mixins/visualstudio.py
@@ -449,7 +449,7 @@ class ClangClCompiler(VisualStudioLikeCompiler):
def has_arguments(self, args: T.List[str], env: 'Environment', code: str, mode: str) -> T.Tuple[bool, bool]:
if mode != 'link':
- args = args + ['-Werror=unknown-argument']
+ args = args + ['-Werror=unknown-argument', '-Werror=unknown-warning-option']
return super().has_arguments(args, env, code, mode)
def get_toolset_version(self) -> T.Optional[str]: