]> git.ipfire.org Git - thirdparty/xz.git/commit
liblzma: Disable CLMUL CRC on old MSVC targeting 32-bit x86
authorLasse Collin <lasse.collin@tukaani.org>
Mon, 7 Apr 2025 19:36:58 +0000 (22:36 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Mon, 7 Apr 2025 19:36:58 +0000 (22:36 +0300)
commitb5a5d9e3f7022e546cdfd4ddc42fe4cc56839c05
treedd6fc4371ed67b6993dc895b172d336bbd49c21f
parentc5fd88dfc3d2b4178dc6da65b02a63a4ef9280c5
liblzma: Disable CLMUL CRC on old MSVC targeting 32-bit x86

On GitHub runners, VS 2019 16.11 (MSVC 19.29.30158) results in
test failures. VS 2022 17.13 (MSVC 19.43.34808) works.

In xz 5.6.x there was a #pragma-based workaround for MSVC builds for
32-bit x86. Another method was thought to work with the new rewritten
CLMUL CRC. Apparently it doesn't. Keep it simple and disable CLMUL CRC
with any non-recent MSVC when building for 32-bit x86.

Fixes: 54eaea5ea49b ("liblzma: x86 CLMUL CRC: Rewrite")
Fixes: https://github.com/tukaani-project/xz/issues/171
Reported-by: Andrew Murray
src/liblzma/check/crc_common.h