not all dependencies have a compile_args attribute

pull/441/head
Nicolas Schneider 9 years ago
parent e366631e9e
commit baa639031b
  1. 3
      mesonbuild/backend/vs2010backend.py

@ -444,7 +444,10 @@ class Vs2010Backend(backends.Backend):
# here. # here.
general_args += compiler.get_option_compile_args(self.environment.coredata.compiler_options) general_args += compiler.get_option_compile_args(self.environment.coredata.compiler_options)
for d in target.get_external_deps(): for d in target.get_external_deps():
try:
general_args += d.compile_args general_args += d.compile_args
except AttributeError:
pass
languages += gen_langs languages += gen_langs
has_language_specific_args = any(l != extra_args['c'] for l in extra_args.values()) has_language_specific_args = any(l != extra_args['c'] for l in extra_args.values())

Loading…
Cancel
Save