not all dependencies have a compile_args attribute

This commit is contained in:
Nicolas Schneider 2016-03-13 19:01:46 +01:00
parent e366631e9e
commit baa639031b
1 changed files with 4 additions and 1 deletions

View File

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