meson: dont use missing dumpbin path

Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Cc: 21.2 mesa-stable
Closes #5142

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12139>
This commit is contained in:
Michel Zou 2021-07-30 13:25:26 +02:00 committed by Marge Bot
parent a2b37e9592
commit 80160a67ab
1 changed files with 3 additions and 1 deletions

View File

@ -2112,7 +2112,9 @@ pkg = import('pkgconfig')
if host_machine.system() == 'windows'
prog_dumpbin = find_program('dumpbin', required : false)
with_symbols_check = prog_dumpbin.found() and with_tests
symbols_check_args = ['--dumpbin', prog_dumpbin.path()]
if with_symbols_check
symbols_check_args = ['--dumpbin', prog_dumpbin.path()]
endif
else
prog_nm = find_program('nm')
with_symbols_check = with_tests