--- mesonbuild/compilers/mixins/clang.py.orig 2024-09-28 13:52:12.000000000 -0500 +++ mesonbuild/compilers/mixins/clang.py 2024-09-28 13:52:12.000000000 -0500 @@ -106,7 +106,7 @@ myargs: T.List[str] = ['-Werror=implicit-function-declaration'] if mode is CompileCheckMode.COMPILE: myargs.extend(['-Werror=unknown-warning-option', '-Werror=unused-command-line-argument']) - if mesonlib.version_compare(self.version, '>=3.6.0'): + if mesonlib.version_compare(self.version, '>=9.6.0'): myargs.append('-Werror=ignored-optimization-argument') return super().get_compiler_check_args(mode) + myargs