Skip to content

add support for x86_64_v{2,3,4} autodetection

Vladislav Nepogodin requested to merge (removed):extended_arches into master

This adds detection of x86_64_v2, x86_64_v3, x86_64_v4.

x86_64_v2: inherits all x86_64_v1 + [SSSE3, SSE4_1, SSE4_2] x86_64_v3: inherits all x86_64_v1,x86_64_v2 + [AVX, AVX2] x86_64_v4: inherits all x86_64_v1,x86_64_v2,x86_64_v3 + [AVX512BW,AVX512BW,AVX512CD,AVX512DQ,AVX512VL]

this patch adds autodetection of architectures such as: x86_64_v2, x86_64_v3, x86_64_v4. which means that user don't need to add/modify default pacman.conf, so that the package that is built with CARCH=x86_64_v3 is going to be downloaded & installed correctly.

this patch was initially made for CachyOS. used & tested in CachyOS for couple of months. NOTE: first iteration of that patch was made in September 29, 2022. No issues were encountered

Please note if I should fix something or what you would make better

RPM also did implement that recently here

Merge request reports