Added special handling of CustomTargetIndex in VS backend

This commit is contained in:
TheQwertiest 2019-04-29 17:12:02 +03:00
parent 2d0550378a
commit 61f9cdf962
1 changed files with 5 additions and 1 deletions

View File

@ -1117,6 +1117,10 @@ class Vs2010Backend(backends.Backend):
# Add more libraries to be linked if needed
for t in target.get_dependencies():
if isinstance(t, build.CustomTargetIndex):
# We don't need the actual project here, just the library name
lobj = t
else:
lobj = self.build.targets[t.get_id()]
linkname = os.path.join(down, self.get_target_filename_for_linking(lobj))
if t in target.link_whole_targets: