Provide nice error for invalid types to shared_library vs_module_defs

This just provides a nice error message for passing invalid types.
pull/1606/head
Dylan Baker 8 years ago
parent c49f5aefd8
commit 6402a8193a
  1. 4
      mesonbuild/build.py

@ -1203,6 +1203,10 @@ class SharedLibrary(BuildTarget):
self.vs_module_defs = path
# link_depends can be an absolute path or relative to self.subdir
self.link_depends.append(path.absolute_path(environment.source_dir, environment.build_dir))
else:
raise InvalidArguments(
'Shared library vs_module_defs must be either a string, '
'or a file object')
def check_unknown_kwargs(self, kwargs):
self.check_unknown_kwargs_int(kwargs, known_lib_kwargs)

Loading…
Cancel
Save