在 2023-07-30 04:31, Jeremy Drake via Mingw-w64-public 写道:
Recently, a build of pycryptodome failed on MSYS2's CLANGARM64, due to a compile error about __cpuidex not being declared. I know cpuid is an x86 thing, and wouldn't expect it to be present on arm(64).
`__cpuid` was introduced in the very first commit, 9d937a7f4f766f903c9433044f77bfa97a0bc1d8 in 2007.The declaration for `__cpuidex` on the other hand has never been added, maybe due to lack of interest; but there are other reasons why we probably don't want to declare it, explained in d2374f898457b0f4ea8bd4084a94f2dafc87a99a.
* There does not appear to be any prototype in intrin.h for __cpuidex like there is for __cpuid, though it is defined in intrin-impl.h. This "oversight" actually allowed the above pull request to sucessfully allow pycryptodome to build for CLANGARM64 (assuming it would have also been erroneously prototyped on ARM as __cpuid was).
I think I should propose a patch to hide `__cpuid` for non-x86 targets. -- Best regards, LIU Hao
OpenPGP_signature
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
