How to deal with C code requiring SSSE (libwebp)

I’m currently working on a WebP native extension. It works well on Windows with a static library, but when including the C code so that it can be compiled by Defold for all platforms, I get errors like this:

always_inline function ‘_mm_shuffle_epi8’ requires target feature ‘ssse3’, but would be inlined into function ‘VP8PlanarTo24b_SSE41’ that is compiled without support for ‘ssse3’

Is there a way to tell the Defold compiler to either always use SSSE3, or to never use SSSE3? When compiling libwebp with cmake this could be handled by flags.

Or does somebody know a better solution to use libwebp?

1 Like