[xz] icc does not support attribute __symver__ (#33839)

xz have added attribute __symver__ for compilers that identify as GCC>=10.0 via
__GNUC__. Intels `icc` sets __GNUC__ but currently does not support this
attribute:
https://community.intel.com/t5/Intel-C-Compiler/symver-not-supported/m-p/1429028/emcs_t/S2h8ZW1haWx8dG9waWNfc3Vic2NyaXB0aW9ufExBQVRWMjIyUFFZTlZTfDE0MjkwMjh8U1VCU0NSSVBUSU9OU3xoSw#M40459
This commit is contained in:
Stephen Sachs 2022-11-16 21:06:41 -06:00 committed by GitHub
parent cd8ec60ae9
commit 7247a493ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,6 +39,10 @@ class Xz(AutotoolsPackage, SourceforgePackage):
description="Build shared libs, static libs or both",
)
# xz-5.2.7/src/liblzma/common/common.h:56 uses attribute __symver__ instead of
# __asm__(.symver) for newer GCC releases.
conflicts("%intel", when="@5.2.7", msg="icc does not support attribute __symver__")
def configure_args(self):
return self.enable_or_disable("libs")