meson: drop dladdr check on win32
authorMichel Zou <xantares09@hotmail.com>
Mon, 27 Jun 2022 19:08:40 +0000 (21:08 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 28 Jun 2022 14:02:14 +0000 (14:02 +0000)
commitedc7f40a83169c16dfd4612f84515ec4c0c9f6f6
treea9284c61c7618cce787ddc771cc1d8c72d726593
parent3129520a73336d72284cd98412bb8d77ed8415de
meson: drop dladdr check on win32

since !17208 there are 2 paths for disk_cache_get_function_identifier
on mingw: DETECT_OS_WINDOWS or HAVE_DLADDR (if dlfcn shims is present)

../src/util/disk_cache_os.c:47:1: error: redefinition of 'disk_cache_get_function_identifier'
   47 | disk_cache_get_function_identifier(void *ptr, struct mesa_sha1 *ctx)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../src/util/disk_cache_os.c:36:
../src/util/disk_cache.h:121:1: note: previous definition of 'disk_cache_get_function_identifier' with type '_Bool(void *, struct _SHA1_CTX *)'
  121 | disk_cache_get_function_identifier(void *ptr, struct mesa_sha1 *ctx)

here we disable the dladdr path from meson for consistency with msvc

fixes: 2dcbe8727

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Reviewed-by: Yonggang Luo <luoyonggang@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17261>
meson.build