meson: dont use missing dumpbin path
authorMichel Zou <xantares09@hotmail.com>
Fri, 30 Jul 2021 11:25:26 +0000 (13:25 +0200)
committerMarge Bot <eric+marge@anholt.net>
Sun, 1 Aug 2021 23:31:33 +0000 (23:31 +0000)
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>

meson.build

index 9c968a3..96a660d 100644 (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