From fe86c9c39953b47946fbf242ad3ced3d75c4d2b7 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Tue, 21 Feb 2017 21:53:19 +0200 Subject: [PATCH] Do not use AVX on OSX since we can't detect it reliably at runtime and some CI machines do not seem to have it. --- test cases/common/139 simd/simd_avx.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test cases/common/139 simd/simd_avx.c b/test cases/common/139 simd/simd_avx.c index aa259330c..989620ba3 100644 --- a/test cases/common/139 simd/simd_avx.c +++ b/test cases/common/139 simd/simd_avx.c @@ -12,7 +12,12 @@ int avx_available() { #include #ifdef __APPLE__ -int avx_available() { return 1; } +/* + * Apple ships a broken __builtin_cpu_supports and + * some machines in the CI farm seem to be too + * old to have AVX so just always return 0 here. + */ +int avx_available() { return 0; } #else int avx_available() {