mesa/src/virtio
Valentine Burley 190ce8280f
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
meson: Add Soong compatibility compiler flags to Vulkan drivers
Suggested by @gurchetansingh.

Android's Soong build system treats several compiler warnings as errors
by default: https://android.googlesource.com/platform/build/soong/+/27f57506/cc/config/global.go/#218

To catch these issues in Mesa, introduce `soong_compat_c_args`
and `soong_compat_cpp_args` with the following flags treated as errors:
 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS
 -Werror=date-time
 -Werror=gnu-alignof-expression
 -Werror=ignored-qualifiers
 -Werror=implicit-fallthrough
 -Werror=int-conversion
 -Werror=missing-prototypes
 -Werror=pragma-pack
 -Werror=pragma-pack-suspicious-include
 -Werror=sizeof-array-div
 -Werror=string-plus-int
 -Werror=unreachable-code-loop-increment

These compatibility flags are added to the meson configurations
for ANV, Gfxstream, Lavapipe, PanVK, Turnip, and Venus.

Signed-off-by: Valentine Burley <valentine.burley@collabora.com>
Acked-by: Emma Anholt <emma@anholt.net>
Reviewed-by: Gurchetan Singh <gurchetan.singh.foss@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41644>
2026-05-22 07:09:49 +00:00
..
ci venus/ci: Skip more even more robustness and synchronization2 tests on ANV 2026-05-15 17:38:59 +00:00
protocols meson: add rust_global_args for flags for all the rust compilations 2025-12-20 00:13:19 +01:00
vdrm meson: Add Soong compatibility compiler flags to Vulkan drivers 2026-05-22 07:09:49 +00:00
venus-protocol venus: sync protocol for strict aliasing compliance 2026-02-20 06:00:46 +00:00
virtgpu_kumquat virtgpu_kumquat: cleanup derelict allow(dead_code) & allow(unused) annotations 2026-01-05 17:01:37 +00:00
virtgpu_kumquat_ffi virtio/kumquat: add safety comments 2026-02-23 17:20:10 +00:00
virtio-gpu intel: Add virtio-gpu native context 2026-02-06 00:15:37 +00:00
vtest virtio/vdrm: Add vtest backend 2025-04-08 15:38:39 +00:00
vulkan meson: Add Soong compatibility compiler flags to Vulkan drivers 2026-05-22 07:09:49 +00:00