compiler.has_argument: Add `-Werror=unknown-warning-option` to clang-cl cmd line

pull/10358/head
Khairul Azhar Kasmiran 3 years ago committed by Jussi Pakkanen
parent f9200ca8f7
commit 6b7bc608b7
  1. 2
      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]:

Loading…
Cancel
Save