panfrost: Add compiler args option for building usermode tools
authorAdrián Larumbe <adrian.larumbe@collabora.com>
Sat, 26 Mar 2022 02:48:52 +0000 (02:48 +0000)
committerMarge Bot <emma+marge@anholt.net>
Wed, 31 Aug 2022 23:54:55 +0000 (23:54 +0000)
Binaries built under src/panfrost weren't passed this compiler switch,
so it would trigger pointer arithmetic errors when using
the inlined definitions in the pandecode library.

Signed-off-by: Adrián Larumbe <adrian.larumbe@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14034>

src/panfrost/meson.build

index 010aaa3..982a9b6 100644 (file)
@@ -27,6 +27,10 @@ inc_panfrost = include_directories([
    '.', 'include', 'shared', 'midgard', 'bifrost', 'lib'
 ])
 
+compile_args_panfrost = [
+  '-Wno-pointer-arith'
+]
+
 subdir('shared')
 subdir('util')
 subdir('midgard')