On Windows with clang-cl from LLVM 19 or 20, the bundled libwebp SSE4.1 and AVX2 sources fail to compile for me, with:
C:\Program Files\LLVM\lib\clang\20\include\rtmintrin.h(36,1): error: attribute 'target' multiversioning cannot be combined with attribute 'always_inline'
C:\Program Files\LLVM\lib\clang\20\include\intrin.h(166,6): note: function multiversioning caused by this declaration
Meat proxy details:
Each file wraps libwebp in #pragma clang attribute push (__attribute__ ((target ("sse4.1"))), apply_to=function). The AVX2 files use "avx2".
libwebp’s src/utils/utils.h includes <intrin.h> when _MSC_VER is defined. So under clang-cl, that include happens inside the pragma region.
In LLVM 19 and 20, intrin.h line 166 declares void _xend(void);. The pragma gives that declaration target("sse4.1").
rtmintrin.h defines _xend with target("rtm") and always_inline. Clang reads the two target attributes as function multiversioning, which it can’t combine with always_inline.