abseil-cpp: fix clang build with BMI2

Clang errors on a direct include of <bmi2intrin.h>

'Never use <bmi2intrin.h> directly; include <immintrin.h> instead.'

 hit whenever __BMI2__ is defined.

Backport the upstream fix to include the umbrella <immintrin.h>
header guarded by an x86 check.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj
2026-06-24 23:33:50 +00:00
parent af3b353bbf
commit e04efc88e9
2 changed files with 37 additions and 0 deletions
@@ -10,6 +10,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=df52c6edb7adc22e533b2bacc3bd3915"
SRC_URI = "https://github.com/abseil/${BPN}/releases/download/${PV}/${BP}.tar.gz \
file://0001-absl-always-use-asm-sgidefs.h.patch \
file://0002-abseil-ppc-fixes.patch \
file://0003-raw_hash_set-include-immintrin.h-instead-of-bmi2intr.patch \
"
SRC_URI[sha256sum] = "6e1aee535473414164bf83e4ebc40240dec71a4701f8a642d906e95bea1aea0c"