From 16ec3f0e195f31ec1f64f406ad138ca94fe2f6f2 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sat, 18 Feb 2017 16:46:50 +0200 Subject: [PATCH] Fix a few OSX "features". --- mesonbuild/compilers/compilers.py | 2 +- test cases/common/139 simd/simd_ssse3.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py index 0b196d212..9829d20da 100644 --- a/mesonbuild/compilers/compilers.py +++ b/mesonbuild/compilers/compilers.py @@ -1006,7 +1006,7 @@ class ClangCompiler: def has_multi_arguments(self, args, env): return super().has_multi_arguments( - ['-Werror=unknown-warning-option'] + args, + ['-Werror=unknown-warning-option', '-Werror=unused-command-line-argument'] + args, env) def has_function(self, funcname, prefix, env, extra_args=None, dependencies=None): diff --git a/test cases/common/139 simd/simd_ssse3.c b/test cases/common/139 simd/simd_ssse3.c index 225fe253f..f5b66d13d 100644 --- a/test cases/common/139 simd/simd_ssse3.c +++ b/test cases/common/139 simd/simd_ssse3.c @@ -1,12 +1,17 @@ #include #include +#include #include #include #include int ssse3_available() { +#ifdef __APPLE__ + return 1; +#else return __builtin_cpu_supports("ssse3"); +#endif } void increment_ssse3(float arr[4]) {