Gbp-Pq: Name 0002-fix-i386-distro-build.patch
const char *pocl_get_distro_kernellib_variant() {
StringMap<bool> Features;
-#if defined(__x86_64__)
+#if defined(__i386__) || defined(__x86_64__)
if (!llvm::sys::getHostCPUFeatures(Features)) {
POCL_MSG_WARN("LLVM can't get host CPU flags!\n");
return NULL;
const char *pocl_get_distro_cpu_name(const char *kernellib_variant) {
StringMap<bool> Features;
-#if defined(__x86_64__)
+#if defined(__i386__) || defined(__x86_64__)
if (!llvm::sys::getHostCPUFeatures(Features)) {
POCL_MSG_WARN("LLVM can't get host CPU flags!\n");
return NULL;