Windows: Fix exception when windres is not found

If rescomp is not found its command is None and that make meson print
backtrace instead of displaying the error message.
pull/3611/head
Xavier Claessens 7 years ago committed by Jussi Pakkanen
parent 45cc001a40
commit b3f74b9c3a
  1. 2
      mesonbuild/modules/windows.py

@ -66,7 +66,7 @@ class WindowsModule(ExtensionModule):
res_args = extra_args + ['@INPUT@', '@OUTPUT@'] res_args = extra_args + ['@INPUT@', '@OUTPUT@']
suffix = 'o' suffix = 'o'
if not rescomp.found(): if not rescomp.found():
raise MesonException('Could not find Windows resource compiler %s.' % ' '.join(rescomp.get_command())) raise MesonException('Could not find Windows resource compiler "%s".' % rescomp_name)
res_targets = [] res_targets = []

Loading…
Cancel
Save