zlib: fix ARMv8 CRC32 compilation in GCC
GCC compilation in ARM architectures with CRC32 extension was
broken, as the extension was guarded for clang.
For GCC we are enforcing armv8-a+crc architecture at module
level, so the builtin extensions are available. Then we
just include arm_acle.h to declare the required builtins.
ThinLTO requires all modules to use same target, so this
change makes GCC fail with ThinLTO (that was not supported
anyway). Added a GN assert to explicitely fail in this case.
Adapted from Vladislav Mukulov <firstname.lastname@example.org>
Reviewed-by: Adenilson Cavalcanti <email@example.com>
Commit-Queue: José Dapena Paz <firstname.lastname@example.org>
2 files changed