[ruby/json] Fix i686 builds
We should test compilation with `-msse2` because we need to test with whatever arguments Ruby will be compiled with. https://github.com/ruby/json/commit/0a871365db
This commit is contained in:
parent
b5beed45a2
commit
338adad8ba
@ -22,7 +22,7 @@ else
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if have_header('x86intrin.h') && have_type('__m128i', headers=['x86intrin.h']) && try_compile(<<~'SRC', opt='-msse2')
|
if have_header('x86intrin.h') && have_type('__m128i', headers=['x86intrin.h']) && try_compile(<<~'SRC')
|
||||||
#include <x86intrin.h>
|
#include <x86intrin.h>
|
||||||
int main() {
|
int main() {
|
||||||
__m128i test = _mm_set1_epi8(32);
|
__m128i test = _mm_set1_epi8(32);
|
||||||
|
@ -117,9 +117,9 @@ typedef struct _search_state {
|
|||||||
const char *chunk_end;
|
const char *chunk_end;
|
||||||
bool has_matches;
|
bool has_matches;
|
||||||
|
|
||||||
#ifdef HAVE_SIMD_NEON
|
#if defined(HAVE_SIMD_NEON)
|
||||||
uint64_t matches_mask;
|
uint64_t matches_mask;
|
||||||
#elif HAVE_SIMD_SSE2
|
#elif defined(HAVE_SIMD_SSE2)
|
||||||
int matches_mask;
|
int matches_mask;
|
||||||
#else
|
#else
|
||||||
#error "Unknown SIMD Implementation."
|
#error "Unknown SIMD Implementation."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user