meson,amd: Remove Windows libelf wrap

Functionality isn't worth the maintenance cost.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18478>
This commit is contained in:
James Park
2022-09-08 09:15:00 -07:00
committed by Marge Bot
parent 74658b01d2
commit b7d4897df9
7 changed files with 37 additions and 15 deletions

View File

@@ -1908,12 +1908,8 @@ with_opencl_native = _opencl != 'disabled' and get_option('opencl-native')
if (with_amd_vk or with_gallium_radeonsi or
(with_gallium_opencl and with_opencl_native) or
(with_gallium_r600 and with_llvm))
if with_platform_windows
dep_elf = dependency('libelf', required : false, fallback : ['libelf', 'libelf_dep'])
else
dep_elf = dependency('libelf', required : false)
endif
if not dep_elf.found()
dep_elf = dependency('libelf', required : false)
if not with_platform_windows and not dep_elf.found()
dep_elf = cc.find_library('elf')
endif
else