]> git.pld-linux.org Git - packages/Mesa.git/commitdiff
for %{arm} with hardfloat pass -mfloat-abi=hard to clang invoked by bindgen auto/th/Mesa-22.3.0-1
authorJan Palus <atler@pld-linux.org>
Thu, 1 Dec 2022 22:22:45 +0000 (23:22 +0100)
committerJan Palus <atler@pld-linux.org>
Thu, 1 Dec 2022 22:22:45 +0000 (23:22 +0100)
it appears that libclang preprocessing uses some minimal platform
configuration which for %{arm} means soft float causing error on hard
float targets:

/usr/include/gnu/stubs.h:7:11: fatal error: 'gnu/stubs-soft.h' file not found
panicked at 'Unable to generate bindings: ClangDiagnostic("/usr/include/gnu/stubs.h:7:11: fatal error: 'gnu/stubs-soft.h' file not found\n")', bindgen-cli/main.rs:52:36

Mesa.spec

index 47df97d25394396c7fcad36de60d7b4d46e54a39..73090356a5f44145a4a880fccd462e8606d1151d 100644 (file)
--- a/Mesa.spec
+++ b/Mesa.spec
@@ -1506,6 +1506,12 @@ freedreno broadcom imagination-experimental panfrost \
 
 vulkan_drivers=$(echo $vulkan_drivers | xargs | tr ' ' ',')
 
+%if %{with gallium_rusticl}
+%ifarch %{arm32_with_hf}
+export BINDGEN_EXTRA_CLANG_ARGS="-mfloat-abi=hard"
+%endif
+%endif
+
 %meson build \
        -Dplatforms=x11%{?with_wayland:,wayland} \
        -Ddri3=enabled \
This page took 0.302545 seconds and 4 git commands to generate.