turnip: Make sure we include the build id.
authorEric Anholt <eric@anholt.net>
Thu, 13 Aug 2020 22:15:26 +0000 (15:15 -0700)
committerMarge Bot <eric+marge@anholt.net>
Mon, 31 Aug 2020 17:50:30 +0000 (17:50 +0000)
The ir3 disk cache is initialized when we use the ir3 compiler, even if we
don't use it ourselves, and it requires a build id.  With lld, it seems we
don't end up getting one included by default.

Fixes: f97acb4bb4b1 ("freedreno/ir3: disk-cache support")
Reviewed-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6324>

src/freedreno/vulkan/meson.build

index 9c25817061590e9b437ee16d530c587f0cc7689f..9b202f8563f1046deb512e70a7c5e92f16441a6b 100644 (file)
@@ -132,7 +132,7 @@ libvulkan_freedreno = shared_library(
   ],
   c_args : [no_override_init_args, tu_flags],
   gnu_symbol_visibility : 'hidden',
-  link_args : [ld_args_bsymbolic, ld_args_gc_sections],
+  link_args : [ld_args_bsymbolic, ld_args_gc_sections, ld_args_build_id],
   install : true,
 )