A few fixes for OSX and VS2010.

pull/1374/head
Jussi Pakkanen 8 years ago
parent 181510bd6e
commit 2181d8f2ab
  1. 4
      test cases/common/139 simd/meson.build
  2. 3
      test cases/common/139 simd/simd_ssse3.c

@ -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',

@ -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

Loading…
Cancel
Save