fix-armhf-build
authorDebian X Strike Force <debian-x@lists.debian.org>
Thu, 3 Oct 2024 19:18:55 +0000 (22:18 +0300)
committerTimo Aaltonen <tjaalton@debian.org>
Thu, 3 Oct 2024 19:18:55 +0000 (22:18 +0300)
Gbp-Pq: Name fix-armhf-build.diff

src/gallium/auxiliary/gallivm/lp_bld_misc.cpp

index 0aa228994ebd0fe1d077685cba356f6309ce8315..38116451b68330e120f468e0fd168d1e32b987dd 100644 (file)
@@ -329,8 +329,12 @@ lp_build_fill_mattrs(std::vector<std::string> &MAttrs)
     * which allows us to enable/disable code generation based
     * on the results of cpuid on these architectures.
     */
+#if LLVM_VERSION_MAJOR >= 19
+   auto features = llvm::sys::getHostCPUFeatures();
+#else
    llvm::StringMap<bool> features;
    llvm::sys::getHostCPUFeatures(features);
+#endif
 
    for (llvm::StringMapIterator<bool> f = features.begin();
         f != features.end();