[Rpm-maint] [rpm-software-management/rpm] Use __builtin_cpu_supports in x86-64 CPU feature level detection (PR #2508)
Fabian Vogt
notifications at github.com
Wed May 24 10:46:42 UTC 2023
> We don't have any officially supported (or unsupported) compilers other than the C99 requirement. gcc and clang are of course by far the most used ones, so if those are covered by just testing for the availability, the platforms that matter most are covered and everybody else (including ancient gcc/clang) maybe gets a slightly degraded experience but that's life.
Ok. Is it ok to perform this check in the preprocessor (e.g. `#if defined(__has_builtin) && __has_builtin(__builtin_cpu_supports)`) or does it have to be done in CMakeLists? If the latter, it'll be a bit annoying without `check_source_compiles` which is only in 3.19+.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/2508#issuecomment-1560891244
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/2508/c1560891244 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20230524/d1a7a364/attachment.html>
More information about the Rpm-maint
mailing list