From 2181d8f2abc977fa12ed72d9bd8369db9370dae8 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sun, 19 Feb 2017 20:40:17 +0200 Subject: [PATCH] A few fixes for OSX and VS2010. --- test cases/common/139 simd/meson.build | 4 ++++ test cases/common/139 simd/simd_ssse3.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/test cases/common/139 simd/meson.build b/test cases/common/139 simd/meson.build index e62cc448f..26a291b77 100644 --- a/test cases/common/139 simd/meson.build +++ b/test cases/common/139 simd/meson.build @@ -12,6 +12,10 @@ if not meson.is_cross_build() and host_machine.cpu_family() == 'arm' and cc.get_ add_project_arguments('-march=armv7', language : 'c') endif +if cc.get_id() == 'msvc' and version_compare(cc.version(), '<17') + error('MESON_SKIP_TEST VS2010 produces broken binaries on x86.') +endif + simdlibs = simd.check('mysimds', mmx : 'simd_mmx.c', sse : 'simd_sse.c', diff --git a/test cases/common/139 simd/simd_ssse3.c b/test cases/common/139 simd/simd_ssse3.c index 40443bebc..ab4dff4f8 100644 --- a/test cases/common/139 simd/simd_ssse3.c +++ b/test cases/common/139 simd/simd_ssse3.c @@ -19,6 +19,9 @@ int ssse3_available() { int ssse3_available() { #ifdef __APPLE__ return 1; +#elif defined(__clang__) + /* https://github.com/numpy/numpy/issues/8130 */ + return __builtin_cpu_supports("sse4.1"); #else return __builtin_cpu_supports("ssse3"); #endif